Advertisement
Guest User

AptOs

a guest
Jul 15th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setBackgroundColor(colors.purple)
  4. term.setCursorPos(1,1)
  5. term.clear()
  6. print("AptOS v0.1")
  7. term.setCursorPos(1,3)
  8.  
  9. while true do
  10.  input = read()
  11.  if input == "help"
  12.  then print("shutdown; shuts off computer, help; displays this page, console; opens CraftOS shell ")
  13.  elseif input == "shutdown" then
  14.  os.shutdown()
  15.  elseif input == "console"
  16.  then shell.run("os/console")
  17.  error()
  18.   end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement