Search Results for

    Show / Hide Table of Contents

    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 Source

    ClearKeepPosition()

    Clears the console buffer, but keeps the current cursor position

    Declaration
    public static void ClearKeepPosition()
    | Edit this page View Source

    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)
    | Edit this page View Source

    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
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX