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

Dispose()
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.

Suspend()

Suspend the application / terminal (e.g. SIGTSTP on Unix) and perform any driver-specific state save/restore required across the suspend/resume cycle. Implementations on platforms that do not support suspension may be a no-op.

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.