SHARE
TWEET

computercraft wireless pocket computer OS

Bradley_b May 19th, 2019 (edited) 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. rednet.open("back", 133)
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. print("Enter Commands")
  6. term.setCursorPos(1,2)
  7. input = read()
  8. if input == "exit" then
  9. exit()
  10. else
  11. message = input
  12. rednet.broadcast(message)
  13. end
  14. end
  15. function exit()
  16. term.clear()
  17. term.setCursorPos(1,1)
  18. print("Terminated the software. To reactivate reeboot.")
  19. term.setCursorPos(1,2)
  20. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top