Table of Contents

Interface IConsoleOutput

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Interface for writing console output

public interface IConsoleOutput : IDisposable
Inherited Members

Methods

GetWindowSize()

Returns the current size of the console window 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.

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