Table of Contents

Interface IOutput

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

The low-level interface drivers implement to provide output capabilities; encapsulates platform-specific output functionality.

public interface IOutput : IDisposable
Inherited Members

Properties

Force16Colors
IsLegacyConsole

Methods

GetCursor()

Gets the current cursor for this output.

GetLastOutput()

Gets a string containing the ANSI escape sequences and content most recently written to the terminal via Write(IOutputBuffer)

GetSixels()
GetSize()

Returns the current size of the console in rows/columns (i.e. of characters not pixels).

SetCursor(Cursor)

Sets the cursor for this output.

SetSize(int, int)

Sets the size of the console.

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.

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.

Write(IOutputBuffer)

Write the contents of the buffer to the console