소스 검색

added a quit function to the shell environment, for obvious purposes

pull/1/head
XeonSquared 4 년 전
부모
커밋
ec5d938a64
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      lib/shell.lua

+ 3
- 0
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()


불러오는 중...
취소
저장