Advertisement
Guest User

startup

a guest
Oct 13th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. shell.run("clear")
  4. print("")
  5. print("          Avariable Turtle's      0=Edit  ")
  6. print("          #- 2, 3         -#     00=Upload")
  7. print("          ------------------              ")
  8. print("")
  9. write(" Choose Turtle : ")
  10. id=io.read()
  11.  
  12. if id == "2" then
  13.  shell.run("clear")
  14.  shell.run("test")
  15. elseif id == "3" then
  16.  shell.run("clear")
  17.  shell.run("test2")
  18. elseif id == "0" then
  19.  shell.run("clear")
  20.  term.setCursorPos( 16,8 )
  21.  print("Name for new Program")
  22.  term.setCursorPos( 18,10 )
  23.  write(" Name : ")
  24.  name = io.read()
  25.  shell.run("edit "..name)
  26.  os.reboot()
  27. elseif id == "00" then
  28.  shell.run("clear")
  29.  term.setCursorPos( 18,8 )
  30.  print("-- Upload --")
  31.  term.setCursorPos( 10,10 )
  32.  write(" Porgramm - Name : ")
  33.  name2 = io.read()
  34.  shell.run("clear")
  35.  term.setCursorPos( 8,10 )
  36.  shell.run("pastebin put "..name2)
  37.  term.setCursorPos( 15,11 )
  38.  write("Press ENTER")
  39.  io.read()
  40.  os.reboot()
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement