Class FakeDriver | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Implements a mock IConsoleDriver for unit testing

public class FakeDriver : ConsoleDriver, IConsoleDriver

Inheritance

object

ConsoleDriver

FakeDriver

Implements

IConsoleDriver

Inherited Members

ConsoleDriver.Clipboard

ConsoleDriver.GetVersionInfo()

ConsoleDriver.EscTimeout

ConsoleDriver.Screen

ConsoleDriver.Clip

ConsoleDriver.Col

ConsoleDriver.Cols

ConsoleDriver.Contents

ConsoleDriver.Left

ConsoleDriver.IsRuneSupported(Rune)

ConsoleDriver.IsValidLocation(int, int)

ConsoleDriver.Move(int, int)

ConsoleDriver.Row

ConsoleDriver.Rows

ConsoleDriver.Top

ConsoleDriver.AddRune(Rune)

ConsoleDriver.AddRune(char)

ConsoleDriver.AddStr(string)

ConsoleDriver.FillRect(Rectangle, Rune)

ConsoleDriver.ClearContents()

ConsoleDriver.ClearedContents

ConsoleDriver.SetContentsAsDirty()

ConsoleDriver.FillRect(Rectangle, char)

ConsoleDriver.IsValidLocation(Rune, int, int)

ConsoleDriver.OnSizeChanged(SizeChangedEventArgs)

ConsoleDriver.Refresh()

ConsoleDriver.Refreshed

ConsoleDriver.SizeChanged

ConsoleDriver.Force16Colors

ConsoleDriver.CurrentAttribute

ConsoleDriver.SetAttribute(Attribute)

ConsoleDriver.GetAttribute()

ConsoleDriver.MakeColor(in Color, in Color)

ConsoleDriver.MouseEvent

ConsoleDriver.OnMouseEvent(MouseEventArgs)

ConsoleDriver.KeyDown

ConsoleDriver.OnKeyDown(Key)

ConsoleDriver.KeyUp

ConsoleDriver.OnKeyUp(Key)

ConsoleDriver.QueueAnsiRequest(AnsiEscapeSequenceRequest)

ConsoleDriver.GetRequestScheduler()

object.Equals(object)

object.Equals(object, object)

object.GetHashCode()

object.GetType()

object.MemberwiseClone()

object.ReferenceEquals(object, object)

object.ToString()

Constructors

FakeDriver()

Fields

FakeBehaviors

Properties

SupportsTrueColor

Gets whether the IConsoleDriver 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.

Edit this page