Search Results for

    Show / Hide Table of Contents

    Class ConsoleFormatting

    Text formatting tools for the console

    Inheritance
    object
    ConsoleFormatting
    Namespace: Terminaux.Base.Extensions
    Assembly: Terminaux.dll
    Syntax
    public static class ConsoleFormatting

    Properties

    | Edit this page View Source

    CurrentFormatting

    Current text formatting

    Declaration
    public static ConsoleFormattingType CurrentFormatting { get; }
    Property Value
    Type Description
    ConsoleFormattingType
    | Edit this page View Source

    TextFormatted

    Has the text been formatted?

    Declaration
    public static bool TextFormatted { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    GetFormattingSequences(ConsoleFormattingType)

    Gets the formatting sequences for the selected formatting types

    Declaration
    public static string GetFormattingSequences(ConsoleFormattingType types)
    Parameters
    Type Name Description
    ConsoleFormattingType types

    Selected formatting types

    Returns
    Type Description
    string

    A string containing necessary VT sequences for all selected text formatting

    | Edit this page View Source

    ResetFormatting()

    Resets console text formatting

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

    SetFormatting(ConsoleFormattingType)

    Sets text formatting for future plain writes

    Declaration
    public static void SetFormatting(ConsoleFormattingType formattings)
    Parameters
    Type Name Description
    ConsoleFormattingType formattings

    All text formatting to use

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX