Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.green)
- term.write("BOS v3.1 CLI-Based")
- term.setCursorPos(1, 3)
- term.setTextColor(colors.white)
- cmd = read()
- if cmd == "license" then
- shell.run("license")
- elseif cmd == "bosChat" then
- term.clear()
- term.setCursorPos(1, 1)
- term.write("Write your username:")
- term.setCursorPos(1, 2)
- user = read()
- shell.run("chat", "join", "bosChat", user)
- shell.run("cmd_handler")
- elseif cmd == "paint" then
- term.clear()
- term.setCursorPos(1, 1)
- term.write("Write your filename (you can include a path):")
- term.setCursorPos(1, 2)
- file = read()
- shell.run("paint", file)
- shell.run("cmd_handler")
- elseif cmd == "help" then
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.blue)
- term.write("BOS Command Directory:")
- term.setTextColor(colors.white)
- term.setCursorPos(1, 3)
- term.write("help - Shows a directory of every command")
- term.setCursorPos(1, 4)
- term.write("paint - Opens a GUI where you are able to paint")
- term.setCursorPos(1, 5)
- term.write("report - Sends a report to a server of a glitch, user, etc.")
- term.setCursorPos(1, 6)
- term.write("ink - Opens Ink, a word processor by Oversimplifier (forum)")
- term.setCursorPos(1, 7)
- term.write("bosChat - Connects to BOS public chat.")
- term.setCursorPos(1, 8)
- term.write("bosSupport - Connects to BOS public support channel.")
- term.setCursorPos(1, 9)
- term.write("re - Reboots the Computer.")
- term.setCursorPos(1, 10)
- term.write("ls - What can we say about it? The same as Linux ls command.")
- term.setCursorPos(1, 11)
- term.write("sd - Shuts down the computer.")
- term.setCursorPos(1, 19)
- term.write("Press any key to continue...")
- os.pullEvent("key")
- shell.run("cmd_handler")
- elseif cmd == "report" then
- term.clear()
- term.setCursorPos(1, 1)
- term.write("Location of the modem? (top, bottom, front, back, left, right)")
- location = read()
- rednet.open(location)
- term.clear()
- term.setCursorPos(1, 1)
- term.write("Write down your report:")
- report = read()
- rednet.broadcast("R" + report)
- elseif cmd == "ink" then
- if fs.exists("/ink") then
- shell.run("ink")
- shell.run("cmd_handler")
- else
- shell.run("pastebin", "get", "JxzXPv03", "ink")
- shell.run("ink")
- shell.run("cmd_handler")
- end
- elseif cmd == "bosSupport" then
- id = os.getComputerID
- shell.run("chat", "join", "bosSupport", "Computer" + id)
- shell.run("cmd_handler")
- elseif cmd == "re" then
- os.reboot()
- elseif cmd == "ls" then
- shell.run("ls")
- term.setCursorPos(1, 19)
- term.write("Press any key to continue...")
- os.pullEvent("key")
- shell.run("cmd_handler")
- elseif cmd == "sd" then
- os.shutdown()
- elseif cmd == "luaide" then
- shell.run("luaide")
- shell.run("cmd_handler")
- elseif cmd == "lua" then
- shell.run("lua")
- shell.run("cmd_handler")
- else
- term.clear()
- term.setCursorPos(1, 1)
- term.setTextColor(colors.red)
- term.write("Whoops! Command not found.")
- term.setCursorPos(1, 3)
- term.setTextColor(colors.white)
- term.write("Press any key to continue...")
- os.pullEvent("key")
- shell.run("cmd_handler")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement