Advertisement
LDDestroier

monc2test

Jan 13th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local render = function()
  2.     term.setBackgroundColor(colors.lightBlue)
  3.     term.clear()
  4.     term.setTextColor(colors.black)
  5.     term.setCursorPos(1,1)
  6.     term.write("Top of screen!")
  7.     local scr_x, scr_y = term.getSize()
  8.     local txt = "Align to edge!"
  9.     term.setCursorPos(scr_x-(#txt-1),scr_y/2)
  10.     term.write(txt)
  11.     term.setCursorPos(1,scr_y)
  12.     term.write("Bottom of screen!")
  13. end
  14.  
  15. render()
  16. sleep(2)
  17. for a = 1, 4 do
  18.     term.scroll(1)
  19.     sleep(0.5)
  20. end
  21. render()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement