Package org.jline.builtins
Class Commands.Colors
java.lang.Object
org.jline.builtins.Commands.Colors
- Enclosing class:
Commands
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intprivate static final Stringprivate booleanprivate String(package private) int(package private) booleanprivate final PrintStream(package private) int(package private) booleanprivate final Terminal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringaddLeftPadding(int width, String field) private StringaddPadding(int width, String field) private Stringforeground(int idx) private StringgetAnsiStyle(String style) private String(package private) Stringprivate int[]hue2rgb(int degree) voidprintColor(String name, String style) voidprintColors(boolean name, boolean rgb, boolean small, int columns, String findName, String style) voidprivate int[]rgb(long color) private int[]rgb2hsl(int r, int g, int b) private voidsetFixedStyle(String style)
-
Field Details
-
COLORS_24BIT
- See Also:
-
COLORS_16
-
name
boolean name -
rgb
boolean rgb -
terminal
-
out
-
fixedBg
private boolean fixedBg -
fixedStyle
-
r
int r -
g
int g -
b
int b
-
-
Constructor Details
-
Colors
-
-
Method Details
-
getAnsiStyle
-
printStyles
public void printStyles() -
getStyle
-
foreground
-
addPadding
-
addLeftPadding
-
setFixedStyle
-
retrieveColorNames
- Throws:
IOException
-
printColors
public void printColors(boolean name, boolean rgb, boolean small, int columns, String findName, String style) throws IOException - Throws:
IOException
-
rgb
private int[] rgb(long color) -
hue2rgb
private int[] hue2rgb(int degree) -
rgb2hsl
private int[] rgb2hsl(int r, int g, int b) -
getStyleRGB
-
printColor
- Throws:
IOException
-