Gets the ANSI escape sequence for a color. This can be used to set the foreground or background color of text. If a custom RGB color is provided, the background property can be set to true to get the background color escape sequence.
The ANSI escape sequence for the color.
The color to get the ANSI escape sequence for. Can be a Foreground or Background enum, or a custom RGB color.
Generated using TypeDoc
Gets the ANSI escape sequence for a color. This can be used to set the foreground or background color of text. If a custom RGB color is provided, the background property can be set to true to get the background color escape sequence.
Returns
The ANSI escape sequence for the color.