Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local id = 0
- local message = ""
- rednet.open ("bottom")
- term.clear()
- term.setCursorPos(1,1)
- function rebootr()
- os.reboot()
- return
- end
- function clearscreenr()
- term.clear()
- term.setCursorPos(1,1)
- return
- end
- while true do
- id, message = rednet.receive()
- if message == "()clear()" then
- rebootr()
- elseif message == "()reboot()" then
- clearscreenr()
- else
- print(message)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement