소스 검색

made io.input open buffers with mode t, for use with readline coming soonTM

master
XeonSquared 4 년 전
부모
커밋
1cc220d38e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      module/io.lua

+ 1
- 1
module/io.lua 파일 보기

@@ -8,7 +8,7 @@ end

function io.input(fd) -- table -- table -- Sets the default input stream to *fd* if provided, either as a buffer as a path. Returns the default input stream.
if type(fd) == "string" then
fd=io.open(fd,"rb")
fd=io.open(fd,"rbt")
end
if fd then
os.setenv("STDIN",fd)


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