Package com.jcabi.log

Class Colors


  • public class Colors
    extends Object
    Store human readable color data.
    Since:
    0.18
    • Constructor Detail

      • Colors

        public Colors()
        Public ctor.
    • Method Detail

      • addColor

        public final void addColor​(String key,
                                   String value)
        Add color to color map.
        Parameters:
        key - Key to add
        value - Value to add
      • ansi

        public final String ansi​(String meta)
        Convert our text to ANSI color.
        Parameters:
        meta - Meta text
        Returns:
        ANSI color