Module com.github.rvesse.airline.io
Interface AnsiColorProvider
-
- All Known Implementing Classes:
BasicColor
,Color256
,TrueColor
public interface AnsiColorProvider
Interface that may be implemented by colour providers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAnsiBackgroundControlCode()
Gets the ANSI control code for setting the background colourjava.lang.String
getAnsiForegroundControlCode()
Gets the ANSI control code for setting the foreground colourboolean
usesExtendedColors()
Gets whether extended colours are used as this will affect the ANSI reset sequence that needs to be used
-
-
-
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
-
-