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

Methods

GetCursorPosition()

Gets the current position of the console cursor.

GetSize()

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

SetCursorPosition(int, int)

Moves the console cursor to the given location.

SetCursorVisibility(CursorVisibility)

Updates the console cursor (the blinking underscore) to be hidden, visible etc.

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