1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-13 00:27:00 -05:00

added a module only to create fds from GPU+Screen+Keyboard combos

This commit is contained in:
XeonSquared 2019-01-08 18:08:25 +11:00
parent 863f343646
commit 9ee9b5d6a2

8
module/createterms.lua Normal file
View File

@ -0,0 +1,8 @@
local ts = {}
for a,_ in component.list("screen") do
ts[#ts+1] = a
end
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