Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local render = function()
- term.setBackgroundColor(colors.lightBlue)
- term.clear()
- term.setTextColor(colors.black)
- term.setCursorPos(1,1)
- term.write("Top of screen!")
- local scr_x, scr_y = term.getSize()
- local txt = "Align to edge!"
- term.setCursorPos(scr_x-(#txt-1),scr_y/2)
- term.write(txt)
- term.setCursorPos(1,scr_y)
- term.write("Bottom of screen!")
- end
- render()
- sleep(2)
- for a = 1, 4 do
- term.scroll(1)
- sleep(0.5)
- end
- render()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement