Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150730821
D14375.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
781 B
Referenced Files
None
Subscribers
None
D14375.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D14375: stand/lua: Chop of the decimal for numbers passed to setcursor
Attached
Detach File
Event Timeline
Log In to Comment