Table of Contents

Class NetOutput

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

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

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

Constructors

NetOutput()

Creates a new instance of the NetOutput class.

Methods

AppendOrWriteAttribute(StringBuilder, Attribute, TextStyle)

Changes the color and text style of the console to the given attr and redrawTextStyle. If command can be buffered in line with other output (e.g. CSI sequence) then it should be appended to output otherwise the relevant output state should be flushed directly (e.g. by calling relevant win 32 API method)

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.

SetCursorPositionImpl(int, int)

When overriden in derived class, positions the terminal output cursor to the specified point on the screen.

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(StringBuilder)

Output the contents of the output to the console.