diff --git a/modules/applications/nshc.lua b/modules/applications/nshc.lua index ef8be1f..b4324be 100644 --- a/modules/applications/nshc.lua +++ b/modules/applications/nshc.lua @@ -1,4 +1,5 @@ function nshc_w(evPP,nid) + local sI = E().sI or 1 while true do if ev[1] == "net_msg" then local V,msg=false,tostring(ev[4]) @@ -7,9 +8,9 @@ function nshc_w(evPP,nid) write(msg:sub(4)) end end - elseif ev[1] == "key" and ev[2] == E().sI and ev[3] == 29 and ev[4] == 27 then + elseif ev[1] == "key" and ev[2] == sI and ev[3] == 29 and ev[4] == 27 then break - elseif ev[1] == "key" and ev[2] == E().sI then + elseif ev[1] == "key" and ev[2] == sI then ns(nid,evPP,"key"..tostring(ev[3])) end C.yield()