Table of Contents

Class NetOutput

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Implementation of IConsoleOutput that uses native dotnet methods e.g. Console

public class NetOutput : IConsoleOutput, IDisposable
Inheritance
NetOutput
Implements
Inherited Members

Constructors

NetOutput()

Creates a new instance of the NetOutput class.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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