Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("right")
- local id = ...
- if id then
- id = tonumber(id)
- else
- id = 45
- end
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- write("Command: ")
- input = read()
- if input == "exit" then break end
- modem.transmit(id, id, input)
- end
Advertisement
Add Comment
Please, Sign In to add comment