Advertisement
aodminecraft

Arc OS Light - Standard

Aug 2nd, 2015
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. local commands = {
  2.  ["help"] = "/lib/light",
  3.  ["end"] = "/boot",
  4.  ["on"] = "/lib/on",
  5.  ["off"] = "/lib/off",
  6.  ["logout"] = "/startup",
  7.  
  8. }
  9.  
  10. term.clear()
  11. term.setCursorPos(1,1)
  12.  print '                   ------------'
  13.  print '                      Arc OS   '
  14.  print '                   ------------'
  15.  
  16.  
  17.  print("Welcome to Lighting system")
  18.  
  19. while true do
  20.  
  21.  write("root@:")
  22.  local input = read()
  23.  
  24. if commands[input] then
  25.   shell.run( commands [input])
  26.  
  27.  else
  28.   print("Command not found!")
  29.   end
  30.  
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement