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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"