Class AnsiColorString


  • public class AnsiColorString
    extends Object
    Class to build AnsiColor strings using a fluent pattern
    • Constructor Detail

      • AnsiColorString

        public AnsiColorString()
        Constructor
    • Method Detail

      • reset

        public AnsiColorString reset()
        Reset the content
        Returns:
        the return value
      • color

        public AnsiColorString color​(AnsiColor ansiColor)
        Method to set the current color
        Parameters:
        ansiColor - ansiColor
        Returns:
        the return value
      • append

        public AnsiColorString append​(String string)
        Method to append a string
        Parameters:
        string - string
        Returns:
        the return value