Captures all terminal output performed on the current thread into the provided AnsiBuilder.
public TerminalInstance.TerminalOutputCaptureScope CaptureOutput(AnsiBuilder builder)
The builder receiving the captured ANSI/text output.
This is primarily useful for scenarios that need to interleave regular terminal output with an inline "live" region (e.g. a terminal UI host), so that writes can be replayed above the live region in a single atomic operation.