kd2bwzgen

remotemessageComputer

Nov 24th, 2015
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. local modem = peripheral.wrap("right")
  2. local id = ...
  3. if id then
  4. id = tonumber(id)
  5. else
  6. id = 45
  7. end
  8. while true do
  9. term.clear()
  10. term.setCursorPos(1, 1)
  11. write("Command: ")
  12. input = read()
  13. if input == "exit" then break end
  14. modem.transmit(id, id, input)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment