2019-01-08 18:08:25 +11:00
|
|
|
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
|
2019-01-09 15:56:19 +11:00
|
|
|
if #fd < 1 then
|
2019-01-09 17:11:10 +11:00
|
|
|
io.open("/boot/console.log","a")
|
2019-01-09 15:56:19 +11:00
|
|
|
end
|