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) int
private static final String
private boolean
private String
(package private) int
(package private) boolean
private final PrintStream
(package private) int
(package private) boolean
private final Terminal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
addLeftPadding
(int width, String field) private String
addPadding
(int width, String field) private String
foreground
(int idx) private String
getAnsiStyle
(String style) private String
(package private) String
private int[]
hue2rgb
(int degree) void
printColor
(String name, String style) void
printColors
(boolean name, boolean rgb, boolean small, int columns, String findName, String style) void
private int[]
rgb
(long color) private int[]
rgb2hsl
(int r, int g, int b) private void
setFixedStyle
(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
-