Advertisement
aodminecraft

Arc OS Colour - Light

Jul 28th, 2015
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 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. term.setTextColor(colors.red)
  13.  print '                   ------------'
  14.  print '                      Arc OS   '
  15.  print '                   ------------'
  16.  
  17.  
  18. term.setTextColor(colors.yellow)
  19.  print("Welcome to Lighting system")
  20.  
  21. while true do
  22.  
  23.  write("root@:")
  24.  local input = read()
  25.  
  26. if commands[input] then
  27.   shell.run( commands [input])
  28.  
  29.  else
  30.   print("Command not found!")
  31.   end
  32.  
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement