Interface IConsoleDriver | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Base interface for Terminal.Gui ConsoleDriver implementations.
public interface IConsoleDriver
Properties
Gets or sets the clip rectangle that AddRune(Rune) and AddStr(string) are subject to.
Get the operating system clipboard.
Gets the column last set by Move(int, int). Col and Row are used byAddRune(Rune) and AddStr(string) to determine where to add content.
The number of columns visible in the terminal.
Gets or sets the contents of the application output. The driver outputs this buffer to the terminal.The format of the array is rows, columns. The first index is the row, the second index is the column.
The Attribute that will be used for the next AddRune(Rune) or AddStr(string)call.
Gets or sets whether the ConsoleDriver should use 16 colors instead of the default TrueColors. See Force16Colors to change this setting via ConfigurationManager.
The leftmost column in the terminal.
Gets the row last set by Move(int, int). Col and Row are used byAddRune(Rune) and AddStr(string) to determine where to add content.
The number of rows visible in the terminal.
Gets the location and size of the terminal screen.
Gets whether the ConsoleDriver supports TrueColor output.
The topmost row in the terminal.
Methods
Adds the specified char to the display at the current cursor position. This method is a convenience method that calls AddRune(Rune) with the Runeconstructor.
Adds the specified rune to the display at the current cursor position.
Adds the str
to the display at the cursor position.
Clears the Contents of the driver.
Ends the execution of the console driver.
Fills the specified rectangle with the specified char. This method is a convenience method that calls FillRect(Rectangle, Rune).
Fills the specified rectangle with the specified rune, using CurrentAttribute
Gets the current Attribute.
GetCursorVisibility(out CursorVisibility)
Gets the terminal cursor visibility.
Gets the AnsiRequestScheduler for the driver
Returns the name of the driver and relevant library version information.
Initializes the driver
Tests if the specified rune is supported by the driver.
IsValidLocation(Rune, int, int)
Tests whether the specified coordinate are valid for drawing the specified Rune.
Makes an Attribute.
Updates Col and Row to the specified column and row inContents. Used by AddRune(Rune) and AddStr(string) to determine where to add content.
QueueAnsiRequest(AnsiEscapeSequenceRequest)
Queues the given request
for execution
Updates the screen to reflect all the changes that have been done to the display buffer
SendKeys(char, ConsoleKey, bool, bool, bool)
Simulates a key press.
Selects the specified attribute as the attribute to use for future calls to AddRune and AddString.
SetCursorVisibility(CursorVisibility)
Sets the terminal cursor visibility.
Suspends the application (e.g. on Linux via SIGTSTP) and upon resume, resets the console driver.
Sets the position of the terminal cursor to Col andRow.
Provide proper writing to send escape sequence recognized by the ConsoleDriver.
Events
Fills the specified rectangle with the specified rune, using CurrentAttribute
Event fired when a key is pressed down. This is a precursor to KeyUp.
Event fired when a key is released.
Event fired when a mouse event occurs.
The event fired when the terminal is resized.