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:
parent
ddb76e073e
commit
40bbffdb11
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329549
@ -58,6 +58,7 @@ function password.read()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function password.check()
|
function password.check()
|
||||||
|
screen.clear();
|
||||||
screen.defcursor();
|
screen.defcursor();
|
||||||
-- pwd is optionally supplied if we want to check it
|
-- pwd is optionally supplied if we want to check it
|
||||||
local function do_prompt(prompt, pwd)
|
local function do_prompt(prompt, pwd)
|
||||||
|
Loading…
Reference in New Issue
Block a user