Advertisement
Guest User

-

a guest
Mar 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local args = require("shell").parse(...)
  2. local kro = require("kro")
  3. local gpu = require("component").gpu
  4.  
  5.  
  6. while true do
  7. print()
  8. io.write(kro.color("§aConsole: §f"))
  9. local command=io.read()
  10.  
  11. result = kro.exec(command)
  12. if result ~= "No output" then
  13.   kro.color(result)
  14. end
  15.  
  16. gpu.setForeground(0xFFFFFF)
  17. print()
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement