Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- --edit color to change backround!
- term.setBackgroundColor(colors.purple)
- term.setCursorPos(1,1) --/\--
- term.clear() --||--
- print("AptOS Dev. Version")
- term.setCursorPos(1,2)
- print(os.getComputerLabel())
- term.setCursorPos(1,3)
- while true do
- input = read()
- if input == "help"
- then print("shutdown; shuts off computer, help; displays this page, console; opens CraftOS shell, background; gives instructions on how to change your background color, reboot; reboots AptOS, programs; lists programs note; programs are addable if you know very basic lua.")
- elseif input == "shutdown" then
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint("Shutting down...")
- sleep(0.3)
- os.shutdown()
- elseif input == "console"
- then shell.run("os/console")
- error()
- elseif input == "background"
- then print("to change background, type in console edit os/Aptos, there are instructions there, sorry for the inconvienince.")
- elseif input == "reboot"
- then
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint("Rebooting...", 4)
- sleep(0.3)
- os.reboot()
- elseif input == "programs" then
- print("rainbow,")
- elseif input == "rainbow" then
- shell.run("rainbow")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement