PSStyle.MapColorPairToEscapeSequence(ConsoleColor, ConsoleColor) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.