Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1, 1)
- end
- function clearlist()
- clear()
- print("Welcome to Frozen OS Beta v1.3")
- print("0. Help")
- print("1. Make Directory")
- print("2. Write/Open a File")
- print("3. List Documents")
- print("4. Write/Edit Notes")
- print("5. Read Notes")
- print("6. Floor/Wall")
- print("7. Stripmine")
- print("8. Wall")
- print("9. Exit")
- print("C. Calculator")
- print("R. Run a program")
- print("T. Turn")
- print("M. Move")
- end
- function recall()
- print()
- print("press Enter to continue.")
- os.pullEvent("key")
- clearlist()
- end
- os.pullEvent = os.pullEventRaw
- clearlist()
- while true do
- event, key = os.pullEvent("char")
- if key == "0" then
- clear()
- shell.run("readme")
- recall()
- elseif key == "1" then
- clear()
- shell.run("OS/createfile")
- recall()
- elseif key == "2" then
- clear()
- shell.run("OS/editor")
- recall()
- elseif key == "3" then
- shell.run("OS/.search")
- recall()
- elseif key == "4" then
- shell.run("OS/notepad")
- recall()
- elseif key == "5" then
- shell.run("OS/noteread")
- recall()
- elseif key == "6" then
- shell.run("programs/floor")
- recall()
- elseif key == "7" then
- shell.run("programs/stripmine")
- recall()
- elseif key == "8" then
- shell.run("programs/wall")
- recall()
- elseif key == "-" then
- shell.run("rom/programs/secret/alongtimeago")
- recall()
- elseif key == "r" then
- shell.run("OS/run")
- recall()
- elseif key == "c" then
- shell.run("programs/calculator")
- recall()
- elseif key == "t" then
- shell.run("OS/turn")
- recall()
- elseif key =="m" then
- shell.run("OS/move")
- recall()
- elseif key == "9" then
- clear()
- if fs.exists("OS/.lock") then
- shell.run("OS/.lock")
- else
- return
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment