Method Write
Write(IOutputBuffer)
Writes dirty cells from the buffer to the console. Iterates rows/cols, skips clean cells,
batches dirty cells into ANSI sequences, emits OSC 8 hyperlink start/close around URL cells,
and finally renders queued sixel images. Cursor visibility is managed by
ApplicationMainLoop.SetCursor().
public virtual void Write(IOutputBuffer buffer)
Parameters
bufferIOutputBuffer
Remarks
To update output from background work, dispatch the update to the application's main loop. Writes and mutations of the buffer must be serialized on that thread. A failed built-in frame write restores consumed dirty flags and invalidates raster state so the buffer can be retried.
Write(StringBuilder)
Output the contents of the output to the console.
protected virtual void Write(StringBuilder output)
Parameters
outputStringBuilder
Write(ReadOnlySpan<byte>)
PERF: Output pre-encoded UTF-8 bytes directly to the console. Bypasses StringBuilder → string → byte[] conversion in the hot path.
protected virtual void Write(ReadOnlySpan<byte> output)
Parameters
outputReadOnlySpan<byte>UTF-8 encoded bytes to write.