From 40bbffdb11924d9440196d6b6fd7368d156f9ebd Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Mon, 19 Feb 2018 02:09:10 +0000 Subject: [PATCH] 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. --- stand/lua/password.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/stand/lua/password.lua b/stand/lua/password.lua index 444c58559d1f..2ce117c89572 100644 --- a/stand/lua/password.lua +++ b/stand/lua/password.lua @@ -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)