Method Write
Write(StringBuilder)
Output the contents of the output to the console.
protected override void Write(StringBuilder output)
Parameters
outputStringBuilder
Write(ReadOnlySpan<char>)
Writes the given text directly to the console. Use to send ansi escape codes etc. Regular screen output should use the IOutputBuffer overload.
public void Write(ReadOnlySpan<char> text)
Parameters
textReadOnlySpan<char>
Write(IOutputBuffer)
Write the contents of the buffer to the console
public override void Write(IOutputBuffer buffer)
Parameters
bufferIOutputBuffer
Write(ReadOnlySpan<byte>)
PERF: Write pre-encoded UTF-8 bytes directly to the terminal. In batch mode, merges deferred cursor moves with cell content into one WriteFile. This is the hot-path write — zero string/byte[] allocation, zero encoding.
protected override void Write(ReadOnlySpan<byte> output)
Parameters
outputReadOnlySpan<byte>