Date: Mon, 19 Feb 2018 02:09:10 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329549 - head/stand/lua Message-ID: <201802190209.w1J29AjC035080@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802190209.w1J29AjC035080>