TextColor.ANSI
, TextColor.Indexed
, TextColor.RGB
public interface TextColor
Modifier and Type | Interface | Description |
---|---|---|
static class |
TextColor.ANSI |
This class represent classic ANSI colors that are likely to be very compatible with most terminal
implementations.
|
static class |
TextColor.Factory |
Utility class to instantiate colors from other types and definitions
|
static class |
TextColor.Indexed |
This class represents a color expressed in the indexed XTerm 256 color extension, where each color is defined in a
lookup-table.
|
static class |
TextColor.RGB |
This class can be used to specify a color in 24-bit color space (RGB with 8-bit resolution per color).
|
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getBackgroundSGRSequence() |
Returns the byte sequence in between CSI and character 'm' that is used to enable this color as the background
color on an ANSI-compatible terminal.
|
int |
getBlue() |
|
byte[] |
getForegroundSGRSequence() |
Returns the byte sequence in between CSI and character 'm' that is used to enable this color as the foreground
color on an ANSI-compatible terminal.
|
int |
getGreen() |
|
int |
getRed() |
|
Color |
toColor() |
Deprecated.
This adds a runtime dependency to the java.desktop module which isn't declared in the module
descriptor of lanterna. If you want to call this method, make sure to add it to your module.
|
byte[] getForegroundSGRSequence()
byte[] getBackgroundSGRSequence()
int getRed()
int getGreen()
int getBlue()
@Deprecated Color toColor()
Copyright © 2020. All rights reserved.