made vt52 support actually setting the session ID
This commit is contained in:
parent
76837876d6
commit
67363dcf92
@ -65,16 +65,17 @@ function tty(gA,sA,sI,fg,bg)
|
||||
end
|
||||
end
|
||||
spawn("tty["..tostring(sI).."]: "..gA:sub(1,8)..","..sA:sub(1,8),function() log(pcall(function()
|
||||
while true do
|
||||
local csi = os.getenv("sI")
|
||||
log(csi)
|
||||
os.setenv("sI",sI)
|
||||
while true do
|
||||
_,si,str=event.pull("display")
|
||||
if si == csi then
|
||||
wl(str)
|
||||
ic()
|
||||
local csi = os.getenv("sI")
|
||||
log(csi)
|
||||
while true do
|
||||
_,si,str=event.pull("display")
|
||||
if si == csi then
|
||||
wl(str)
|
||||
ic()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end)) end)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user