def capture_output_from_running_process(context: RunContext) -> None:
<EOL>_output = context.capture.readline(block=False)<EOL>if _output:<EOL><INDENT>line = decode_and_filter(_output, context)<EOL>if line:<EOL><INDENT>if not context.mute:<EOL><INDENT>_LOGGER_PROCESS.debug(line)<EOL><DEDENT>context.process_output_chunks.append(line)<EOL><DEDENT>return capture_output_from_running_process(context)<EOL><DEDENT>return None<EOL>
Parses output from a running sub-process

Decodes and filters the process output line by line, buffering it

If "mute" is False, sends the output back in real time

:param context: run context
:type context: _RunContext