Date: Fri, 2 Mar 2018 17:07:08 +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: r330287 - head/stand/lua Message-ID: <201803021707.w22H78eA002541@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Fri Mar 2 17:07:08 2018 New Revision: 330287 URL: https://svnweb.freebsd.org/changeset/base/330287 Log: lualoader: Reset the cursor position after the menu is drawn Rather than before the menu is drawn. The drawer is going to reset the crusor position as soon as it draws anything anyways, so doing it before serves no purpose. Setting it after is needed so we don't clobber the menu when we start booting. Modified: head/stand/lua/menu.lua Modified: head/stand/lua/menu.lua ============================================================================== --- head/stand/lua/menu.lua Fri Mar 2 16:51:43 2018 (r330286) +++ head/stand/lua/menu.lua Fri Mar 2 17:07:08 2018 (r330287) @@ -346,9 +346,9 @@ menu.current_alias_table = {} function menu.draw(menudef) -- Clear the screen, reset the cursor, then draw screen.clear() - screen.defcursor() menu.current_alias_table = drawer.drawscreen(menudef) drawn_menu = menudef + screen.defcursor() end -- 'keypress' allows the caller to indicate that a key has been pressed that we
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803021707.w22H78eA002541>