Advertisement
Guest User

SciOS

a guest
Sep 1st, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. --Functions--
  2. function commandExit()
  3. local ec = read()
  4. if ec ~= "1" then
  5.   startUp()
  6. else
  7.   term.clear()
  8.   term.setCursorPos(1, 1)
  9.   end
  10. end  
  11.  
  12. function startUp()
  13. term.clear()
  14. term.setCursorPos(1, 2)
  15. print("0----------------0---------0")
  16. term.setCursorPos(1, 3)
  17. print(":  Welcome to    : Remember:")
  18. term.setCursorPos(1, 4)
  19. print(":   SciOS v0.2   : to Copy :")
  20. term.setCursorPos(1, 5)
  21. print("0----------------0 Over to :")
  22. term.setCursorPos(1, 6)
  23. print(":                : Startup :")
  24. term.setCursorPos(1, 7)
  25. print("0------0---------0---------0")
  26. term.setCursorPos(1, 8)
  27. print(":1-Exit:")
  28. term.setCursorPos(1, 9)
  29. print("0------0")
  30. term.setCursorPos(2, 6)
  31. commandExit()
  32. end
  33.  
  34. --Start of OS--
  35. startUp()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement