Advertisement
Guest User

Aptos

a guest
Jul 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.33 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3.        --edit color to change backround!
  4. term.setBackgroundColor(colors.purple)
  5. term.setCursorPos(1,1)         --/\--
  6. term.clear()                   --||--
  7. print("AptOS Dev. Version")
  8. term.setCursorPos(1,2)
  9. print(os.getComputerLabel())
  10. term.setCursorPos(1,3)
  11.  
  12. while true do
  13.  input = read()
  14.  if input == "help"
  15.  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.")
  16.  elseif input == "shutdown" then
  17.  term.setBackgroundColor(colors.black)
  18.  term.clear()
  19.  term.setCursorPos(1,1)
  20.  textutils.slowPrint("Shutting down...")
  21.  sleep(0.3)
  22.  os.shutdown()
  23.  elseif input == "console"
  24.  then shell.run("os/console")
  25.  error()
  26.  elseif input == "background"
  27.  then print("to change background, type in console edit os/Aptos, there are instructions there, sorry for the inconvienince.")
  28.  elseif input == "reboot"
  29.  then
  30.  term.setBackgroundColor(colors.black)
  31.  term.clear()
  32.  term.setCursorPos(1,1)
  33.  textutils.slowPrint("Rebooting...", 4)
  34.  sleep(0.3)
  35.  os.reboot()
  36.  elseif input == "programs" then
  37.  print("rainbow,")
  38.  elseif input == "rainbow" then
  39.  shell.run("rainbow")
  40.  end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement