From 67363dcf929bc22bbca89fbd39dddb43a52fc3e3 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 26 Sep 2017 13:56:15 +1000 Subject: [PATCH] made vt52 support actually setting the session ID --- modules/drivers/vt52.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/modules/drivers/vt52.lua b/modules/drivers/vt52.lua index c5b2046..a82a742 100644 --- a/modules/drivers/vt52.lua +++ b/modules/drivers/vt52.lua @@ -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