Method ToAnsi
ToAnsi(IOutputBuffer)
Generates an ANSI escape sequence string representation of the given buffer contents.
This is the same output that would be written to the terminal to recreate the current screen contents.
public string ToAnsi(IOutputBuffer buffer)
Parameters
bufferIOutputBufferThe output buffer to convert to ANSI.
Returns
- string
A string containing ANSI escape sequences representing the buffer contents.