stand/lua: Clear the screen before prompting for passwords

In the worst case scenario, we have no passwords to prompt for and we end up
just clearing the screen twice before we draw the menu or proceed with boot.

In the best case scenario, we don't try drawing password prompts amidst a
bunch of kernel/module loading.
This commit is contained in:
Kyle Evans 2018-02-19 02:09:10 +00:00
parent ddb76e073e
commit 40bbffdb11
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329549

View File

@ -58,6 +58,7 @@ function password.read()
end
function password.check()
screen.clear();
screen.defcursor();
-- pwd is optionally supplied if we want to check it
local function do_prompt(prompt, pwd)