Some code movement
This commit is contained in:
4
init.lua
4
init.lua
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user