The branch stable/12 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=cdd8bfecd2ffa37ef7508177e0ba9fe87db0251f
commit cdd8bfecd2ffa37ef7508177e0ba9fe87db0251f Author: Toomas Soome <[email protected]> AuthorDate: 2021-03-23 05:04:48 +0000 Commit: Kyle Evans <[email protected]> CommitDate: 2021-09-12 05:39:16 +0000 loader: insert spaces around menu title Small visual nit, make menu title more clean (cherry picked from commit 62ffcaab8f3ccba6053d4a5622c5ef2de9f636b5) --- stand/forth/menu.4th | 3 ++- stand/lua/drawer.lua | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stand/forth/menu.4th b/stand/forth/menu.4th index ca166c6d934b..c67d6f8f4f6e 100644 --- a/stand/forth/menu.4th +++ b/stand/forth/menu.4th @@ -489,7 +489,8 @@ also menu-infrastructure definitions if ( use default center alignement? ) menuX @ 19 + over 2 / - menuY @ 1- then - at-xy type + swap 1- swap + at-xy space type space \ If $menu_init is set, evaluate it (allowing for whole menus to be \ constructed dynamically -- as this function could conceivably set diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua index 49f71c12b9d9..7c1a05448871 100644 --- a/stand/lua/drawer.lua +++ b/stand/lua/drawer.lua @@ -267,8 +267,8 @@ local function drawbox() if menu_header_x == nil then menu_header_x = x + (w // 2) - (#menu_header // 2) end - screen.setcursor(menu_header_x, y) - printc(menu_header) + screen.setcursor(menu_header_x - 1, y) + printc(" " .. menu_header .. " ") end local function drawbrand() _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
