public class Color256 extends Object implements AnsiColorProvider
| Constructor and Description |
|---|
Color256(int color) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getAnsiBackgroundControlCode()
Gets the ANSI control code for setting the background colour
|
String |
getAnsiForegroundControlCode()
Gets the ANSI control code for setting the foreground colour
|
String |
toString() |
boolean |
usesExtendedColors()
Gets whether extended colours are used as this will affect the ANSI reset
sequence that needs to be used
|
public String getAnsiForegroundControlCode()
AnsiColorProvidergetAnsiForegroundControlCode in interface AnsiColorProviderpublic String getAnsiBackgroundControlCode()
AnsiColorProvidergetAnsiBackgroundControlCode in interface AnsiColorProviderpublic boolean usesExtendedColors()
AnsiColorProviderusesExtendedColors in interface AnsiColorProviderCopyright © 2012–2022. All rights reserved.