Browse Source

moved the creation of a sink fd into createterms

pull/1/head
XeonSquared 5 years ago
parent
commit
bbacdc6dbd
2 changed files with 9 additions and 9 deletions
  1. +9
    -0
      module/createterms.lua
  2. +0
    -9
      module/io.lua

+ 9
- 0
module/createterms.lua View File

@@ -6,3 +6,12 @@ for a,_ in component.list("gpu") do
local r,w = vtemu(a,table.remove(ts,1))
fd[#fd+1] = {["read"]=r,["write"]=w,["close"]=function() w("\27[2J\27[H") end,["t"]="t"}
end
if #fd < 1 then
local fdi,nfd = io.newfd()
function nfd.read()
end
function nfd.write()
end
function nfd.close()
end
end

+ 0
- 9
module/io.lua View File

@@ -63,12 +63,3 @@ function io.open(f,m) -- opens file *f* with mode *m*
return t
end
end
do
local fdi,nfd = io.newfd()
function nfd.read()
end
function nfd.write()
end
function nfd.close()
end
end

Loading…
Cancel
Save