Package picocli
Class CommandLine.Help.Ansi.Palette256Color
java.lang.Object
picocli.CommandLine.Help.Ansi.Palette256Color
- All Implemented Interfaces:
CommandLine.Help.Ansi.IStyle
- Enclosing class:
CommandLine.Help.Ansi
static class CommandLine.Help.Ansi.Palette256Color
extends Object
implements CommandLine.Help.Ansi.IStyle
Defines a palette map of 216 colors: 6 * 6 * 6 cube (216 colors):
16 + 36 * r + 6 * g + b (0 <= r, g, b <= 5).
-
Field Summary
FieldsFields inherited from interface picocli.CommandLine.Help.Ansi.IStyle
CSI
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
fgbg
private final int fgbg -
color
private final int color
-
-
Constructor Details
-
Palette256Color
Palette256Color(boolean foreground, String color)
-
-
Method Details
-
on
Description copied from interface:CommandLine.Help.Ansi.IStyle
Returns the ANSI escape code for turning this style on.- Specified by:
on
in interfaceCommandLine.Help.Ansi.IStyle
- Returns:
- the ANSI escape code for turning this style on
-
off
Description copied from interface:CommandLine.Help.Ansi.IStyle
Returns the ANSI escape code for turning this style off.- Specified by:
off
in interfaceCommandLine.Help.Ansi.IStyle
- Returns:
- the ANSI escape code for turning this style off
-
equals
-
hashCode
public int hashCode()
-