Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function newLine()
- local _,cY= term.getCursorPos()
- term.setCursorPos(1,cY+1)
- end
- local monitors = {peripheral.find("monitor")}
- local mon = monitors[1]
- counter = 0
- mon.write("hello! counting to")
- newLine()
- mon.write("10")
- newLine()
- while counter < 10 do
- mon.write("hoi")
- newLine()
- counter = counter + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment