Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function startMonitor()
- monitor.setTextScale(1)
- wm, hm = monitor.getSize()
- end
- monitor = peripheral.wrap("left")
- local w,h = term.getSize()
- local monP = peripheral.isPresent("left")
- local monT = peripheral.getType("left")
- local cX,cY = monitor.getCursorPos()
- term.redirect(monitor)
- while true do
- -- Open the modem.
- rednet.open("back")
- -- Wait for a message
- id, message = rednet.receive()
- monitor.write(message)
- end
Advertisement
Add Comment
Please, Sign In to add comment