Class FakeDriver
Implements a mock ConsoleDriver for unit testing
public class FakeDriver : ConsoleDriver
- Inheritance
-
FakeDriver
- Inherited Members
Constructors
Fields
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.
- SendKeys(char, ConsoleKey, bool, bool, bool)
Simulates a key press.
- SetCursorVisibility(CursorVisibility)
Sets the terminal cursor visibility.
- Suspend()
Suspends the application (e.g. on Linux via SIGTSTP) and upon resume, resets the console driver.
- UpdateScreen()
Redraws the physical screen with the contents that have been queued up via any of the printing commands.