aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2021-03-23 05:04:48 +0000
committerToomas Soome <tsoome@FreeBSD.org>2021-03-23 07:31:36 +0000
commit62ffcaab8f3ccba6053d4a5622c5ef2de9f636b5 (patch)
treeb02dd27ee0f91b384777e40fe56886762ae5a79f
parent3ead60236fd25ce64fece7ae4a453318ca18c119 (diff)
downloadsrc-62ffcaab8f3ccba6053d4a5622c5ef2de9f636b5.tar.gz
src-62ffcaab8f3ccba6053d4a5622c5ef2de9f636b5.zip
loader: insert spaces around menu title
Small visual nit, make menu title more clean MFC after: 3 days
-rw-r--r--stand/forth/menu.4th3
-rw-r--r--stand/lua/drawer.lua4
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()