Advertisement
thegreatstudio

s

May 21st, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. term.clear()
  2. term.setBackgroundColor(colors.black)
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. term.setTextColor(colors.white)
  6. print("Orange OS ver. "..build)
  7. print("Type help to show commands!")
  8. while true do
  9. write("orange@orange$ ")
  10. cmd = read()
  11. if cmd == "exit" then
  12. break
  13. elseif cmd == "help" then
  14. print("exit --- To exit this terminal.")
  15. print("clrs --- clears the screen.")
  16. print("ls -- list all directories.")
  17. print("cd -- changes the directories")
  18. print("c -- current directory")
  19. print("version --- Shows the version of the kernel or the OS.")
  20. print("codename --- shows the codename of the os.")
  21. print("shutdown --- shutsdown the computer.")
  22. print("restart --- reboots the system.")
  23. elseif cmd == "clrs" then
  24. term.clear()
  25. term.setCursorPos(1, 1)
  26. print("Orange OS ver. "..build)
  27. print("Type help to show commands!")
  28. elseif cmd == "version" then
  29. print("The version of the kernel is "..build)
  30. elseif cmd == "codename" then
  31. print(Codename)
  32. elseif cmd == "ls" then
  33. shell.run("//.orange/apps/list.o")
  34. elseif cmd == "cd" then
  35. elseif cmd == "restart" then
  36. os.reboot()
  37. elseif cmd == "shutdown" then
  38. os.shutdown()
  39. elseif cmd == "c" then
  40. print(shell.dir())
  41. elseif cmd == "setalias" then
  42. term.clear()
  43. term.setBackgroundColor(colors.black)
  44. term.setTextColor(colors.white)
  45. write("Please enter the alias name: ")
  46. s = read()
  47. write("Please enter the program: ")
  48. set = read()
  49. shell.setAlias(s, set)
  50. end
  51. end
  52.  
  53.  
  54. build = "1.4.5"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement