Page MenuHomeFreeBSD

D14375.diff
No OneTemporary

D14375.diff

Index: head/stand/lua/screen.lua
===================================================================
--- head/stand/lua/screen.lua
+++ head/stand/lua/screen.lua
@@ -31,6 +31,17 @@
local color = require("color");
local core = require("core");
+-- XXX TODO: This should be fixed in the interpreter to not print decimals
+function intstring(num)
+ local str = tostring(num)
+ local decimal = string.find(str, "[.]")
+
+ if decimal then
+ return string.sub(str, 1, decimal - 1)
+ end
+ return str
+end
+
function screen.clear()
if core.bootserial() then
return;
@@ -42,7 +53,8 @@
if core.bootserial() then
return;
end
- loader.printc("\027["..y..";"..x.."H");
+
+ loader.printc("\027["..intstring(y)..";"..intstring(x).."H");
end
function screen.setforeground(c)

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 4:34 PM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30829304
Default Alt Text
D14375.diff (781 B)

Event Timeline