Advertisement
Guest User

email

a guest
May 24th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. function drawArrow()
  2.  term.setTextColor(colors.yellow)
  3.  write("> ")
  4.  term.setTextColor(colors.black)
  5. end
  6. term.clear()
  7. term.setCursorPos(1,1)
  8. term.setBackgroundColor(colors.white)
  9. term.setTextColor(colors.black)
  10. term.clear()
  11. print("Please input the modem side.")
  12. term.setTextColor(colors.red)
  13. write("> ")
  14. term.setTextColor(colors.black)
  15. local side = read()
  16. rednet.open(side)
  17.  
  18. print("[1] Send")
  19. print("")
  20. print("[2] Read")
  21. drawArrow()
  22. local option = read()
  23. if option == 1 then
  24. shell.run(".Send")
  25. elseif option == 2 then
  26. shell.run(".Read")
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement