Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 1)
- print("CraftOS Debian")
- local trueV = true
- local computerID = os.getComputerID()
- local greetingR = "user@computer"..tostring(computerID)..":"
- local greeting = greetingR.."-$ "
- local greetingS = greeting
- repeat
- write(greeting)
- input = read()
- if input == "cd" then
- print("Which directory do you wish to change to?")
- input2 = read()
- end
- if input2 == "/" then shell.run("cd /") greeting = greetingS else shell.run("cd /"..input2) greeting = greetingR.."-/"..input2.."$ " end
- -- if input == "dev" then
- -- print("Editing CraftOS Debian...")
- -- sleep(3)
- -- shell.run("edit startup")
- -- end
- if input == "reboot" then
- term.clear()
- term.setCursorPos(1, 1)
- write("Going down for reboot now!")
- sleep(3)
- os.reboot()
- end
- if input == "execute" or input == "exec" then
- print("Path to script you wish to execute?")
- write(">")
- input2 = read()
- shell.run(input2)
- end
- if input == "edit" or input == "nano" then
- write("Name of program?:")
- input2 = read()
- if input2 == "startup" then print("Unable to edit OS.") else shell.run("edit "..input2) end
- end
- if input == "chat" then
- write("Name: ")
- input2 = read()
- write("Server: ")
- input3 = read()
- shell.run("chat join "..input3.." "..input2)
- end
- if input == exit then
- print("Exiting...")
- os.sleep(3)
- trueV = false
- end
- until trueV == false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement