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) |
RenderChangePosition(int, int)
Renders the VT sequence that changes the cursor position
Declaration
public static string RenderChangePosition(int left, int top)
Parameters
Type | Name | Description |
---|---|---|
int | left | Zero-based left position |
int | top | Zero-based top position |
Returns
Type | Description |
---|---|
string |