lualoader: Respect loader_menu_title, prepare for align

This commit is contained in:
Kyle Evans 2018-03-03 17:25:49 +00:00
parent a76f8a5bc2
commit 953d8937d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330341

View File

@ -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)