This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Pantomchap's profile picture

PantoOS

Started by Pantomchap, 29 November 2012 - 01:27 PM
Pantomchap #1
Posted 29 November 2012 - 02:27 PM
This is my OS



--[[ All of this is from my own head. This is NOT copied. If you modify anything, please give me some credit   :) thanks. ]]--
term.clear()
term.setCursorPos(1, 1)
textutils.slowPrint("Welcome to PantoOS")
i = 0
while(i < 1) do
io.write("$ ")
a = io.read()
a = a:lower()
if a == "HELP" or a == "help" then
  print("HELP - gives all the commands")
  print("CLS - clears the screen")
  print("ABOUT - tells what PantoOS is about")
  print("EXIT - leaves PantoOS without shutting down")
  print("-S - shuts down PantoOS")
  print("-R - reboots PantoOS")
  print("RSLEFT or RSRIGHT - sets the output for redstone\n on either the left or right")
elseif a == "CLS" or a == "cls" then
  term.clear()
  term.setCursorPos(1, 1)
elseif a == "EXIT" or a == "exit" then
  break
elseif a == "-S" or a == "-s" then
  print("shutting down...")
  sleep(1)
  os.shutdown()
elseif a == "-R" or a == "-r" then
  print("Restarting...")
  sleep(1)
  os.reboot()
elseif a == "RSRIGHT" or a == "rsright" then
  rs.setOutput("right", true)
elseif a == "RSLEFT" or a == "rsleft" then
  rs.setOutput("left", true)
elseif a == "ABOUT" or a == "about" then
  print("PantoOS version 1.3\n\nNot copyright protected D:")
else
  print("Unknown command '", a , "'")
end
end
Tiin57 #2
Posted 29 November 2012 - 02:28 PM
I cannot tell if this is a troll or not.
See below.
Orwell #3
Posted 29 November 2012 - 02:37 PM
To help you on the if statements, add this to the 'a = io.read()':

a = io.read()
a = a:lower()
Pantomchap #4
Posted 29 November 2012 - 02:43 PM
To help you on the if statements, add this to the 'a = io.read()':

a = io.read()
a = a:lower()

Thanks, will do.
Tiin57 #5
Posted 29 November 2012 - 02:45 PM
To help you on the if statements, add this to the 'a = io.read()':

a = io.read()
a = a:lower()

Thanks, will do.
Scratch what I said above. You seem reasonable; sorry for not responding in kind. The forums have been plagued with jacka**es lately.
Pantomchap #6
Posted 29 November 2012 - 02:59 PM
My OS is like the old DOS operating system by Microsoft. I do NOT own Microsoft. And I do NOT own this creepy staring cow standing next to me O_O
Orwell #7
Posted 29 November 2012 - 03:02 PM
My OS is like the old DOS operating system by Microsoft. I do NOT own Microsoft. And I do NOT own this creepy staring cow standing next to me O_O
It's a wolf :P/>.