Pirnogion

TCInstaller

Jan 19th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. if (not term.isColor()) then
  2.     term.setBackgroundColor(colors.black)
  3.     term.setTextColor(colors.white)
  4. else
  5.     term.setBackgroundColor(colors.white)
  6.     term.setTextColor(colors.gray)
  7. end
  8.  
  9. term.clear()
  10. term.setCursorPos(1, 1)
  11.  
  12. write("Install Turtle Controller? y/n")
  13. local _, c = os.pullEvent("char")
  14. if (c == "n") then
  15.     return
  16. end
  17.  
  18. shell.run("pastebin get CdzzAr37 GUIElements")
  19.  
  20. if turtle then
  21.     shell.run("pastebin get 60YGiCM0 TCT")
  22.     write("Turtle version installed.")
  23. else
  24.     shell.run("pastebin get UJjFsHuy TCC")
  25.     write("Computer version installed.")
  26. end
  27.  
  28. sleep(2)
  29. shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment