Table of Contents

Class FakeDriver

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Implements a mock ConsoleDriver for unit testing

public class FakeDriver : ConsoleDriver
Inheritance
FakeDriver
Inherited Members

Constructors

FakeDriver()

Fields

FakeBehaviors

Properties

SupportsTrueColor

Gets whether the ConsoleDriver supports TrueColor output.

Methods

EnsureCursorVisibility()

Determines if the terminal cursor should be visible or not and sets it accordingly.

GetCursorVisibility(out CursorVisibility)

Gets the terminal cursor visibility.

ResizeScreen()
SendKeys(char, ConsoleKey, bool, bool, bool)

Simulates a key press.

SetBufferSize(int, int)
SetCursorVisibility(CursorVisibility)

Sets the terminal cursor visibility.

SetWindowPosition(int, int)
SetWindowSize(int, int)
Suspend()

Suspends the application (e.g. on Linux via SIGTSTP) and upon resume, resets the console driver.

UpdateCursor()

Sets the position of the terminal cursor to Col and Row.

UpdateScreen()

Redraws the physical screen with the contents that have been queued up via any of the printing commands.