CaptureOutput(AnsiBuilder) Method

Definition

Assembly XenoAtom.Terminal.dll

Captures all terminal output performed on the current thread into the provided AnsiBuilder.

public TerminalInstance.TerminalOutputCaptureScope CaptureOutput(AnsiBuilder builder)

Parameters

builder
AnsiBuilder

The builder receiving the captured ANSI/text output.

Returns

TerminalInstance.TerminalOutputCaptureScope
A scope that ends the capture when disposed.

Remarks

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.