Table of Contents

Method ToAnsi

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

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

buffer IOutputBuffer

The output buffer to convert to ANSI.

Returns

string

A string containing ANSI escape sequences representing the buffer contents.