java.lang.Object
com.github.rvesse.airline.io.colors.Color256
- All Implemented Interfaces:
AnsiColorProvider
256 colour i.e. palette of 256 colors that most modern terminals will support
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the ANSI control code for setting the background colourGets the ANSI control code for setting the foreground colourtoString()booleanGets whether extended colours are used as this will affect the ANSI reset sequence that needs to be used
-
Constructor Details
-
Color256
public Color256(int color)
-
-
Method Details
-
getAnsiForegroundControlCode
Description copied from interface:AnsiColorProviderGets the ANSI control code for setting the foreground colour- Specified by:
getAnsiForegroundControlCodein interfaceAnsiColorProvider- Returns:
- Foreground control code
-
getAnsiBackgroundControlCode
Description copied from interface:AnsiColorProviderGets the ANSI control code for setting the background colour- Specified by:
getAnsiBackgroundControlCodein interfaceAnsiColorProvider- Returns:
- Background control code
-
usesExtendedColors
public boolean usesExtendedColors()Description copied from interface:AnsiColorProviderGets whether extended colours are used as this will affect the ANSI reset sequence that needs to be used- Specified by:
usesExtendedColorsin interfaceAnsiColorProvider- Returns:
- True if extended colours are used, false otherwise
-
toString
-
equals
-