Advertisement
BlueZero

Receive Program

Jun 12th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. monitor = peripheral.wrap("left")
  2. term.redirect(monitor)
  3.  
  4. function pLine ()
  5.  monitor.setCursorPos(1,1)
  6.     monitor.write(message)
  7.     monitor.scroll(-1)
  8.     return main()
  9. end
  10.  
  11. function startMonitor ()
  12.   monitor.setTextScale(0.5)
  13. end
  14.  
  15. function main ()
  16.   startMonitor ()
  17.   while true do
  18.     rednet.open("right")
  19.     id, message = rednet.receive()
  20.     pLine()
  21.   end
  22. end
  23.  
  24. main ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement