浏览代码

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)


正在加载...
取消
保存