svn commit: r329549 - head/stand/lua

Kyle Evans kevans at FreeBSD.org
Mon Feb 19 02:09:11 UTC 2018


Author: kevans
Date: Mon Feb 19 02:09:10 2018
New Revision: 329549
URL: https://svnweb.freebsd.org/changeset/base/329549

Log:
  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.

Modified:
  head/stand/lua/password.lua

Modified: head/stand/lua/password.lua
==============================================================================
--- head/stand/lua/password.lua	Mon Feb 19 02:01:49 2018	(r329548)
+++ head/stand/lua/password.lua	Mon Feb 19 02:09:10 2018	(r329549)
@@ -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)


More information about the svn-src-head mailing list