svn commit: r330341 - head/stand/lua
Kyle Evans
kevans at FreeBSD.org
Sat Mar 3 17:25:50 UTC 2018
Author: kevans
Date: Sat Mar 3 17:25:49 2018
New Revision: 330341
URL: https://svnweb.freebsd.org/changeset/base/330341
Log:
lualoader: Respect loader_menu_title, prepare for align
Modified:
head/stand/lua/drawer.lua
Modified: head/stand/lua/drawer.lua
==============================================================================
--- head/stand/lua/drawer.lua Sat Mar 3 17:18:40 2018 (r330340)
+++ head/stand/lua/drawer.lua Sat Mar 3 17:25:49 2018 (r330341)
@@ -380,8 +380,13 @@ function drawer.drawbox()
printc(vl)
end
- screen.setcursor(x + (w / 2) - 9, y)
- printc("Welcome to FreeBSD")
+ local menu_header = loader.getenv("loader_menu_title") or
+ "Welcome to FreeBSD"
+ local menu_header_x
+
+ menu_header_x = x + (w / 2) - (#menu_header / 2)
+ screen.setcursor(menu_header_x, y)
+ printc(menu_header)
end
function drawer.draw(x, y, logo)
More information about the svn-src-all
mailing list