Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function online()
- term.clear()
- term.setCursorPos(1,1)
- rednet.open("back")
- function receive()
- while(true) do
- local id, msg = rednet.receive()
- print(msg)
- end
- end
- function send()
- while(true) do
- local msg = io.read()
- rednet.broadcast(msg)
- end
- end
- parallel.waitForAll(receive,send)
- end
- online()
Add Comment
Please, Sign In to add comment