Supported Colors and Styles by Terminals#
Limited Support for ANSI Escape Codes#
Colorist is based on ANSI escape codes, a standard that defines colors, styling, and effects for text in terminal windows. Note that most terminals support all color options, but not all.
Overview#
Generally, the features of Colorist are supported in these categories:
Category | Supported By | Colorist Options1 |
---|---|---|
Standard ANSI colors and effects | Almost all terminals | Color , BgColor , Effect |
Non-standard ANSI, bright, and 8-bit VGA colors | Most terminals | BrightColor , BgBrightColor , ColorVGA , BgColorVGA |
Advanced ANSI colors such as 24-bit RGB colors | Â Some terminals | ColorRGB , BgColorRGB , ColorHSL , BgColorHSL , ColorHex , BgColorHex |
Refer to the terminal's documentation to see if it supports extended color palettes.
-
Only custom string styling methods are mentioned in this overview. However, this similarly applies to the respective full text functions. For instance
vga()
forColorVGA
,bg_vga()
forBgColorVGA
,rgb()
forColorRGB
,bg_rgb()
forBgColorRGB
, etc. ↩