Interface AnsiColorProvider

  • All Known Implementing Classes:
    BasicColor, Color256, TrueColor

    public interface AnsiColorProvider
    Interface that may be implemented by colour providers
    • Method Detail

      • getAnsiBackgroundControlCode

        java.lang.String getAnsiBackgroundControlCode()
        Gets the ANSI control code for setting the background colour
        Returns:
        Background control code
      • getAnsiForegroundControlCode

        java.lang.String getAnsiForegroundControlCode()
        Gets the ANSI control code for setting the foreground colour
        Returns:
        Foreground control code
      • usesExtendedColors

        boolean usesExtendedColors()
        Gets whether extended colours are used as this will affect the ANSI reset sequence that needs to be used
        Returns:
        True if extended colours are used, false otherwise