Page MenuHomeFreeBSD

D46771.diff
No OneTemporary

D46771.diff

diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua
--- a/stand/lua/menu.lua
+++ b/stand/lua/menu.lua
@@ -530,6 +530,7 @@
drawn_menu = nil
screen.defcursor()
+ -- We explicitly want the newline print adds
print("Exiting menu!")
end
@@ -544,7 +545,7 @@
if last == nil or last ~= time then
last = time
screen.setcursor(x, y)
- print("Autoboot in " .. time ..
+ printc("Autoboot in " .. time ..
" seconds. [Space] to pause ")
screen.defcursor()
end
@@ -553,9 +554,12 @@
if ch == core.KEY_ENTER then
break
else
- -- erase autoboot msg
+ -- Erase autoboot msg. While real VT100s
+ -- wouldn't scroll when receiving a char with
+ -- the cursor at (24, 79), bad emulators do.
+ -- Avoid the issue by stopping at 79.
screen.setcursor(0, y)
- print(string.rep(" ", 80))
+ printc(string.rep(" ", 79))
screen.defcursor()
return ch
end

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 5:54 AM (14 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12769725
Default Alt Text
D46771.diff (921 B)

Event Timeline