Procházet zdrojové kódy

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

master
XeonSquared před 4 roky
rodič
revize
1cc220d38e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      module/io.lua

+ 1
- 1
module/io.lua Zobrazit soubor

@@ -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)


Načítá se…
Zrušit
Uložit