Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.find("modem")
- modem.open(128)
- term.clear()
- term.setCursorPos(1, 1)
- print("Waiting..")
- local _, _, _, _, code = os.pullEvent("modem_message")
- if code ~= nil then
- shell.run(code)
- term.clear()
- term.setCursorPos(1, 1)
- print("Received.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement