theMCcm

theMCcm's API

Jul 19th, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. --theMCcm's API--
  2. function clear()
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. end
  6. function lineUp()
  7. x,y = term.getCursorPos()
  8. y = y - 1
  9. term.setCursorPos(1, y)
  10. end
  11. function lineDown()
  12. x,y = term.getCursorPos()
  13. y = y + 1
  14. term.setCursorPos(1, y)
  15. end
  16. function lineClear()
  17. term.clearLine()
  18. end
Add Comment
Please, Sign In to add comment