Some code movement

This commit is contained in:
2025-10-25 18:25:50 +02:00
parent 8f5d71a6b9
commit f6c031849f
4 changed files with 71 additions and 51 deletions

View File

@ -188,14 +188,16 @@ local function run_target(target, name)
end
view:clear()
-- background pump (non-blocking I/O)
core.add_thread(function()
while true do
core.redraw = true
coroutine.yield(0.016) -- ~60fps
if running_proc == nil then
return
end
local out = running_proc:read_stdout()
local out = runner:read_stdout(running_proc)
if out == nil then
-- stdout pipe closed: try drain stderr and break when both closed
local err = runner:read_stderr(running_proc)