Advertisement
RicardoLuis0

RedOS cmd

Jul 29th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. while true do
  2. term.setTextColor(colors.red)
  3. write(shell.dir()..)
  4. term.setTextColor(colors.orange)
  5. write("> ")
  6. term.setTextColor(colors.white)
  7. command=read()
  8. if command == "exit" then
  9. break
  10. else if command == "help" then
  11. print[[
  12. RedOS help --
  13. "exit" to quit to CraftOS
  14. ]]
  15. else
  16. shell.run(command)
  17. end
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement