forked from izaya/OC-PsychOS2
moved the creation of a sink fd into createterms
This commit is contained in:
parent
517d579bb9
commit
bbacdc6dbd
@ -6,3 +6,12 @@ for a,_ in component.list("gpu") do
|
|||||||
local r,w = vtemu(a,table.remove(ts,1))
|
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"}
|
fd[#fd+1] = {["read"]=r,["write"]=w,["close"]=function() w("\27[2J\27[H") end,["t"]="t"}
|
||||||
end
|
end
|
||||||
|
if #fd < 1 then
|
||||||
|
local fdi,nfd = io.newfd()
|
||||||
|
function nfd.read()
|
||||||
|
end
|
||||||
|
function nfd.write()
|
||||||
|
end
|
||||||
|
function nfd.close()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
@ -63,12 +63,3 @@ function io.open(f,m) -- opens file *f* with mode *m*
|
|||||||
return t
|
return t
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
do
|
|
||||||
local fdi,nfd = io.newfd()
|
|
||||||
function nfd.read()
|
|
||||||
end
|
|
||||||
function nfd.write()
|
|
||||||
end
|
|
||||||
function nfd.close()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
Loading…
Reference in New Issue
Block a user