Skip to content

autoTerminalSink

autoTerminalSink<TData>(stream, terminal, options): ISink<TData>

Defined in: packages/app-report/src/sink/auto-terminal-sink.ts:22

Selects createPlainLineSink or LiveRegionSink based on terminal.interactive — the two P0 rendering sinks are given equal billing here rather than one wrapping the other, since a live-region formatter (progress bars, live tails) is typically not the same one wanted for a plain non-interactive log.

TData

WritableStream<string>

Terminal

AutoTerminalSinkOptions<TData>

ISink<TData>