Package com.jcabi.log

Class Colors

java.lang.Object
com.jcabi.log.Colors

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

    • Colors

      public Colors()
      Public ctor.
  • Method Details

    • 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