Table of Contents

Class NetOutput

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

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

public class NetOutput : OutputBase, IOutput, 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.

GetCursor()

Gets the current cursor for this output.

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.

SetCursorPositionImpl(int, int)

When overriden in derived class, positions the terminal draw cursor to the specified point on the screen. Note, this does NOT update any internal cursor position state - that is the responsibility of the caller.

SetSize(int, int)

Sets the size of the console.

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.