Date: Fri, 9 Mar 2018 18:45:13 +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: r330701 - head/stand/lua Message-ID: <201803091845.w29IjDUN043608@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803091845.w29IjDUN043608>