浏览代码

moved the creation of a sink fd into createterms

pull/1/head
XeonSquared 5 年前
父节点
当前提交
bbacdc6dbd
共有 2 个文件被更改,包括 9 次插入9 次删除
  1. +9
    -0
      module/createterms.lua
  2. +0
    -9
      module/io.lua

+ 9
- 0
module/createterms.lua 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存