Advertisement
aodminecraft

Arc OS Boot - Standard

Aug 2nd, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. local commands = {
  2.  ["light"] = "programs/light",
  3.  ["logout"] = "startup",
  4.  ["worldedit"] = "programs/WE_Core",
  5.  ["programs"] = "lib/programs",
  6.  ["help"] = "lib/help",
  7.  ["credits"] = "lib/credits",
  8.  --["stargate"] = "programs/Lanteacraft_Dialer",
  9.  
  10. }
  11.  
  12.  term.clear()
  13.  term.setCursorPos(1,1)
  14.  term.setTextColor(colors.red)
  15.  print '                   ------------'
  16.  print '                      Arc OS   '
  17.  print '                   ------------'
  18.  
  19.  term.setTextColor(colors.yellow)
  20.  print("Type help for assitance using Arc OS")
  21.  print("Credits to the available programs can be accessed by typing 'credits'")
  22.  
  23.  
  24. while true do
  25.  
  26.  write("root@:")
  27.  local input = read()
  28.  
  29. if commands[input] then
  30.   shell.run( commands [input])
  31.  
  32.  else
  33.   print("Command not found!")
  34.   end
  35.  
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement