Object AnsiColor

  • All Implemented Interfaces:

    
    public class AnsiColor
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String fg(Integer r, Integer g, Integer b) Set true color (24 bit) foreground.
      final String bg(Integer r, Integer g, Integer b) Set true color (24 bit) background.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • fg

         final String fg(Integer r, Integer g, Integer b)

        Set true color (24 bit) foreground.

        Parameters:
        r - Red intensity.
        g - Green intensity.
        b - Blue intensity.
        Returns:

        Escape code to set the foreground color.

      • bg

         final String bg(Integer r, Integer g, Integer b)

        Set true color (24 bit) background.

        Parameters:
        r - Red intensity.
        g - Green intensity.
        b - Blue intensity.
        Returns:

        Escape code to set the background color.