Pinkishu

Untitled

Jun 18th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. function blankLine(line,startFrom)
  2.   local ox,oy = term.getCursorPos()
  3.   if not line then oy = line end
  4.   if not startFrom then startFrom = ox end
  5.   local w = term.getSize()
  6.   local wx = w - startFrom + 1
  7.   term.setCursorPos(startFrom,line)
  8.   term.write(string.rep(" ",wx))
  9.   term.setCursorPos(ox,oy)
  10. end
Advertisement
Add Comment
Please, Sign In to add comment