Table of Contents

Class FakeDriver

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Implements a mock ConsoleDriver for unit testing

public class FakeDriver : ConsoleDriver, IConsoleDriver
Inheritance
FakeDriver
Implements
Inherited Members

Constructors

FakeDriver()

Fields

FakeBehaviors

Properties

SupportsTrueColor

Gets whether the ConsoleDriver supports TrueColor output.

Methods

End()

Ends the execution of the console driver.

GetCursorVisibility(out CursorVisibility)

Gets the terminal cursor visibility.

Init()

Initializes the driver

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.

WriteRaw(string)

Provide proper writing to send escape sequence recognized by the ConsoleDriver.