Class ConsolePositioning
Console positioning tools
Inheritance
object
ConsolePositioning
Namespace: Terminaux.Base.Extensions
Assembly: Terminaux.dll
Syntax
public static class ConsolePositioning
Methods
| Edit this page View SourceClearKeepPosition()
Clears the console buffer, but keeps the current cursor position
Declaration
public static void ClearKeepPosition()
GetFilteredPositions(string, bool, params object[])
Get the filtered cursor positions (by filtered means filtered from the VT escape sequences that matches the regex in the routine)
Declaration
public static (int, int) GetFilteredPositions(string Text, bool line, params object[] Vars)
Parameters
Type | Name | Description |
---|---|---|
string | Text | The text that contains the VT sequences |
bool | line | Whether to simulate the new line at the end of text or not |
object[] | Vars | Variables to be formatted in the text |
Returns
Type | Description |
---|---|
(int Width, int Height) |
InitializeSequences()
Initializes the VT sequence handling for Windows systems.
Declaration
public static bool InitializeSequences()
Returns
Type | Description |
---|---|
bool |