Advertisement
Guest User

startup

a guest
Jan 26th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. while true do
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("Please choose an option.")
  5. print("")
  6. print("")
  7.  
  8. -- Options
  9. print("[1] - Lock System")
  10. print("[2] - System Shell")
  11.  
  12. local event, key = os.pullEvent("key")
  13.  
  14. if key == keys.one then
  15. shell.run("locksys")
  16. elseif key == keys.two then
  17. print("Accessing Shell...")
  18. sleep(0.5)
  19. term.clear()
  20. term.setCursorPos(1,1)
  21. break
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement