Godleydemon

Untitled

Jun 12th, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function startMonitor()
  2.   monitor.setTextScale(1)
  3.   wm, hm = monitor.getSize()
  4. end
  5.  
  6. monitor = peripheral.wrap("left")
  7. local w,h = term.getSize()
  8. local monP = peripheral.isPresent("left")
  9. local monT = peripheral.getType("left")
  10. local cX,cY = monitor.getCursorPos()
  11. term.redirect(monitor)
  12.  
  13. while true do
  14.  
  15. -- Open the modem.
  16. rednet.open("back")
  17.  
  18. -- Wait for a message
  19. id, message = rednet.receive()
  20.  
  21. monitor.write(message)
  22.  
  23. end
Advertisement
Add Comment
Please, Sign In to add comment