git: d019c774e906 - stable/13 - loader: insert spaces around menu title

Toomas Soome tsoome at FreeBSD.org
Sun Apr 4 08:18:58 UTC 2021


The branch stable/13 has been updated by tsoome:

URL: https://cgit.FreeBSD.org/src/commit/?id=d019c774e9063e36c0a80e75df02df8b4b202f47

commit d019c774e9063e36c0a80e75df02df8b4b202f47
Author:     Toomas Soome <tsoome at FreeBSD.org>
AuthorDate: 2021-03-23 05:04:48 +0000
Commit:     Toomas Soome <tsoome at FreeBSD.org>
CommitDate: 2021-04-03 23:03:33 +0000

    loader: insert spaces around menu title
    
    Small visual nit, make menu title more clean
    
    (cherry picked from 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 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()


More information about the dev-commits-src-all mailing list