force output to parent streams in windows

This commit is contained in:
Eric 2023-11-27 17:01:33 +11:00
parent a7f33bf15f
commit 8997573d60
No known key found for this signature in database

View File

@ -29,7 +29,7 @@ type
client: ?CodexClient
proc start(node: NodeProcess) =
if node.debug:
if node.debug or defined(windows):
node.process = osproc.startProcess(
executable,
workingDir,
@ -40,8 +40,7 @@ proc start(node: NodeProcess) =
node.process = osproc.startProcess(
executable,
workingDir,
node.arguments,
options={poStdErrToStdOut, poInteractive}
node.arguments
)
proc waitUntilOutput*(node: NodeProcess, output: string) =