diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2021-03-23 05:04:48 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2021-04-03 23:03:33 +0000 |
commit | d019c774e9063e36c0a80e75df02df8b4b202f47 (patch) | |
tree | ed759e3cf28c340ea81dc46e490420f073e376d9 | |
parent | ca20444e2ad664c34bb12f1a24f4ca6dc407a5bc (diff) | |
download | src-d019c774e9063e36c0a80e75df02df8b4b202f47.tar.gz src-d019c774e9063e36c0a80e75df02df8b4b202f47.zip |
loader: insert spaces around menu title
Small visual nit, make menu title more clean
(cherry picked from 62ffcaab8f3ccba6053d4a5622c5ef2de9f636b5)
-rw-r--r-- | stand/forth/menu.4th | 3 | ||||
-rw-r--r-- | 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 6b0869cfe3b9..a336b9f9e7aa 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 eb9b18117cd3..523735a75d06 100644 --- a/stand/lua/drawer.lua +++ b/stand/lua/drawer.lua @@ -285,8 +285,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() |