Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. function printStatus(...)
  2.     for i in string.gmatch(tostring(...), "([^\r\n]+)") do
  3.         gpuInvoke("set", 1, cursorPos.y, tostring(i))
  4.         cursorPos.y = cursorPos.y + 1
  5.         if string.len(tostring(...)) > 80 then
  6.             repeat
  7.                 sline = i:sub(1,80)
  8.                 i = i:sub(81)
  9.                 gpuInvoke("set", 1, cursorPos.y, tostring(sline))
  10.                 cursorPos.y = cursorPos.y + 1
  11.             until i == nil
  12.         end
  13.     end
  14.     -- cursorPos.y = cursorPos.y + 1
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement