Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.white)
- print("Orange OS ver. "..build)
- print("Type help to show commands!")
- while true do
- write("orange@orange$ ")
- cmd = read()
- if cmd == "exit" then
- break
- elseif cmd == "help" then
- print("exit --- To exit this terminal.")
- print("clrs --- clears the screen.")
- print("ls -- list all directories.")
- print("cd -- changes the directories")
- print("c -- current directory")
- print("version --- Shows the version of the kernel or the OS.")
- print("codename --- shows the codename of the os.")
- print("shutdown --- shutsdown the computer.")
- print("restart --- reboots the system.")
- elseif cmd == "clrs" then
- term.clear()
- term.setCursorPos(1, 1)
- print("Orange OS ver. "..build)
- print("Type help to show commands!")
- elseif cmd == "version" then
- print("The version of the kernel is "..build)
- elseif cmd == "codename" then
- print(Codename)
- elseif cmd == "ls" then
- shell.run("//.orange/apps/list.o")
- elseif cmd == "cd" then
- elseif cmd == "restart" then
- os.reboot()
- elseif cmd == "shutdown" then
- os.shutdown()
- elseif cmd == "c" then
- print(shell.dir())
- elseif cmd == "setalias" then
- term.clear()
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- write("Please enter the alias name: ")
- s = read()
- write("Please enter the program: ")
- set = read()
- shell.setAlias(s, set)
- end
- end
- build = "1.4.5"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement