Class Colors

java.lang.Object
org.jline.utils.Colors

public class Colors extends Object
Utility class for color-related operations and definitions.

The Colors class provides utility methods and constants for working with colors in terminal applications. It includes color palettes, color name mappings, and methods for color parsing and conversion.

This class defines standard color palettes for different terminal color modes:

  • 8 standard ANSI colors
  • 256-color indexed palette
  • Named color mappings (e.g., "red", "blue", "navy")

It also provides methods for parsing color specifications in various formats, such as RGB hex codes, CSS-style color names, and indexed color references. These utilities help with consistent color handling across different terminal types and color capabilities.