Compartilhar via


VTUtility.GetEscapeSequence Method

Definition

Overloads

GetEscapeSequence(ConsoleColor)

Return the VT escape sequence for a ConsoleColor.

GetEscapeSequence(VTUtility+VT)

Return the VT escape sequence for a supported VT enum value.

GetEscapeSequence(ConsoleColor)

Return the VT escape sequence for a ConsoleColor.

public static string GetEscapeSequence (ConsoleColor color);
static member GetEscapeSequence : ConsoleColor -> string
Public Shared Function GetEscapeSequence (color As ConsoleColor) As String

Parameters

color
ConsoleColor

The ConsoleColor to return the equivalent VT escape sequence.

Returns

The requested VT escape sequence.

Applies to

GetEscapeSequence(VTUtility+VT)

Return the VT escape sequence for a supported VT enum value.

public static string GetEscapeSequence (System.Management.Automation.VTUtility.VT vt);
static member GetEscapeSequence : System.Management.Automation.VTUtility.VT -> string
Public Shared Function GetEscapeSequence (vt As VTUtility.VT) As String

Parameters

vt
VTUtility.VT

The VT code to return the VT escape sequence.

Returns

The requested VT escape sequence.

Applies to