Sdílet prostřednictvím


PSStyle.MapColorPairToEscapeSequence(ConsoleColor, ConsoleColor) Method

Definition

Return the VT escape sequence for a pair of foreground and background colors.

public static string MapColorPairToEscapeSequence (ConsoleColor foregroundColor, ConsoleColor backgroundColor);
static member MapColorPairToEscapeSequence : ConsoleColor * ConsoleColor -> string
Public Shared Function MapColorPairToEscapeSequence (foregroundColor As ConsoleColor, backgroundColor As ConsoleColor) As String

Parameters

foregroundColor
ConsoleColor

The foreground color of the color pair.

backgroundColor
ConsoleColor

The background color of the color pair.

Returns

The VT escape sequence representing the foreground and background color pair.

Applies to