1
0
mirror of https://github.com/kepler155c/opus synced 2025-11-02 08:33:02 +00:00

kernel improvements

This commit is contained in:
kepler155c@gmail.com
2020-05-08 22:32:44 -06:00
parent 71bbd2d457
commit b0db0b86bd
7 changed files with 87 additions and 83 deletions

View File

@@ -42,17 +42,16 @@ local function telnetHost(socket, mode)
end
local shellThread = kernel.run({
terminal = win,
window = win,
title = mode .. ' client',
hidden = true,
co = coroutine.create(function()
Util.run(_ENV, Alt.get('shell'), table.unpack(termInfo.program))
fn = function()
Util.run(kernel.makeEnv(), Alt.get('shell'), table.unpack(termInfo.program))
if socket.queue then
socket:write(socket.queue)
end
socket:close()
end)
end,
})
Event.addRoutine(function()