Advertisement
Tripy998

SOS. Simple. Elegant. Useful.

Oct 1st, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.26 KB | None | 0 0
  1. --Dear Reader,
  2. --
  3. --This OS was made by Tripy998 for simplicity.
  4. --Please wait before saying "(x) is not on this!"
  5. --He is woring on updating it!
  6. --Thank you,
  7. --
  8. --Tripy998
  9. shell.run("pastebin get 3XEeYmrH prompt")
  10. print("Prompt API was downloaded for use by SOS")
  11. print("It is Copyrighted under 1lann")
  12. sleep(2)
  13. term.setTextColor(colors.red)
  14. term.setBackgroundColor(colors.orange)
  15. function clock( x,y )
  16.   time = os.clock()
  17.   term.setCursorPos(x,y)
  18.   print(textutils.slowWrite(textutils.formatTime(os.time(), false)))
  19. end
  20. function clear()
  21.   term.clear()
  22.   term.setCursorPos(1,1)
  23. end
  24. clear()
  25. os.loadAPI("prompt")
  26. term.setCursorPos(19,7)
  27. textutils.slowWrite("SOS")
  28. term.setCursorPos(16,8)
  29. textutils.slowWrite("Simple. Elegant. Useful.")
  30. clock(23,8)
  31. enter = prompt.prompt({{"Enter OS", 20, 9}})
  32. if enter == "Enter OS" then
  33.   clear()
  34.   paintutils.drawLine(1,19,51,19,colors.blue)
  35.   clock(23,2)
  36.   menu = prompt.prompt({{"Menu", 1, 19}})
  37.   if menu == "Menu" then
  38.     paintutils.drawLine(1,18,10,18,colors.yellow)
  39.     quit = prompt.prompt({{"Exit",1,18}})
  40.     if quit == "Exit" then
  41.       clear()
  42.       term.setCursorPos(15,1)
  43.       textutils.slowWrite("Thanks for using TripyOS")
  44.       term.setCursorPos(1,2)
  45.       shell.run("shell")
  46.     end
  47.   end
  48. end3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement