Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function printStatus(...)
- for i in string.gmatch(tostring(...), "([^\r\n]+)") do
- gpuInvoke("set", 1, cursorPos.y, tostring(i))
- cursorPos.y = cursorPos.y + 1
- if string.len(tostring(...)) > 80 then
- repeat
- sline = i:sub(1,80)
- i = i:sub(81)
- gpuInvoke("set", 1, cursorPos.y, tostring(sline))
- cursorPos.y = cursorPos.y + 1
- until i == nil
- end
- end
- -- cursorPos.y = cursorPos.y + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement