From 1cc220d38e2172a8f0fed6874d2db0843586605c Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 11 Jun 2020 12:55:19 +1000 Subject: [PATCH] made io.input open buffers with mode t, for use with readline coming soonTM --- module/io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/io.lua b/module/io.lua index 7ff9dea..ed1a57c 100644 --- a/module/io.lua +++ b/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)