Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("front")
- monitor = peripheral.wrap("right")
- local msg
- local _, height = monitor.getSize()
- monitor.setCursorPos(1, height)
- while true do
- _, msg, _ = rednet.receive()
- reactor_stat = string.match(msg, "^[^:]*")
- buf_stat = string.match(msg, "[^:]*$")
- monitor.scroll(1)
- monitor.setCursorPos(1, height)
- if reactor_stat == "ON" then
- monitor.setTextColor(colors.lime)
- else
- monitor.setTextColor(colors.red)
- end
- monitor.write(reactor_stat)
- monitor.setTextColor(colors.white)
- monitor.write(buf_stat)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement