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.
|
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.
|
Color |
toColor() |
Converts this color to an AWT color object, assuming a standard VGA palette.
|
byte[] getForegroundSGRSequence()
byte[] getBackgroundSGRSequence()
Color toColor()
Copyright © 2020. All rights reserved.