diff --git a/lib/shell.lua b/lib/shell.lua index b5912d5..538cce8 100644 --- a/lib/shell.lua +++ b/lib/shell.lua @@ -21,6 +21,9 @@ end function shell.interactive() local shenv = setmetatable({}, {__index=shindex}) local run = true + function shenv.quit() + run = false + end while run do io.write(string.format("\27[32m%s:%s>\27[0m ",os.getenv("HOSTNAME") or "localhost",(os.getenv("PWD") or _VERSION))) local input = io.read()