svn commit: r330701 - head/stand/lua
Kyle Evans
kevans at FreeBSD.org
Fri Mar 9 18:45:14 UTC 2018
Author: kevans
Date: Fri Mar 9 18:45:13 2018
New Revision: 330701
URL: https://svnweb.freebsd.org/changeset/base/330701
Log:
lualoader: Don't redraw the autoboot message every .05s
Modified:
head/stand/lua/menu.lua
Modified: head/stand/lua/menu.lua
==============================================================================
--- head/stand/lua/menu.lua Fri Mar 9 17:59:22 2018 (r330700)
+++ head/stand/lua/menu.lua Fri Mar 9 18:45:13 2018 (r330701)
@@ -425,14 +425,17 @@ function menu.autoboot()
local endtime = loader.time() + ab
local time
-
+ local last
repeat
time = endtime - loader.time()
- screen.setcursor(x, y)
- print("Autoboot in " .. time ..
- " seconds, hit [Enter] to boot" ..
- " or any other key to stop ")
- screen.defcursor()
+ if last == nil or last ~= time then
+ last = time
+ screen.setcursor(x, y)
+ print("Autoboot in " .. time ..
+ " seconds, hit [Enter] to boot" ..
+ " or any other key to stop ")
+ screen.defcursor()
+ end
if io.ischar() then
local ch = io.getchar()
if ch == core.KEY_ENTER then
More information about the svn-src-all
mailing list