Package de.linusdev.lutils.ansi.sgr
Enum Class SGRParameters
- All Implemented Interfaces:
SGRParameter,Serializable,Comparable<SGRParameters>,Constable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSets background color to black.
IntelliJ Console: not testedSets background color to blue.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedSets background color to given 24-bit color.Sets background color to given 8-bit color.Sets background color to cyan.
IntelliJ Console: not testedSets background color to the default background color
IntelliJ Console: not testedSets background color to green.
IntelliJ Console: not testedSets background color to magenta.
IntelliJ Console: not testedSets background color to red.
IntelliJ Console: not testedSets background color to white.
IntelliJ Console: not testedSets background color to yellow.
IntelliJ Console: not testedbold font.
IntelliJ Console: not supportedNot widely supported.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedEncircled.
IntelliJ Console: not testedfaint or light font.
IntelliJ Console: not supportedSets foreground color to black.
IntelliJ Console: not testedSets foreground color to blue.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedSets foreground color to given 24-bit color.Sets foreground color to given 8-bit color.Sets foreground color to cyan.
IntelliJ Console: not testedSets foreground color to the default foreground color
IntelliJ Console: not testedSets foreground color to green.
IntelliJ Console: not testedSets foreground color to magenta.
IntelliJ Console: not testedSets foreground color to red.
IntelliJ Console: supportedSets foreground color to white.
IntelliJ Console: not testedSets foreground color to yellow.
IntelliJ Console: not testedFramed.
IntelliJ Console: not testedGothic font.
IntelliJ Console: not testedRarely supported.
IntelliJ Console: not testedRarely supported.
IntelliJ Console: not testedRarely supported.
IntelliJ Console: not testedRarely supported.
IntelliJ Console: not testedRarely supported.
IntelliJ Console: not testedSwap foreground and background colors.
IntelliJ Console: not testeditalic font.Rarely supported.
IntelliJ Console: not testedRarely supported.
IntelliJ Console: not testedRarely supported.Rarely supported.Overlined.
IntelliJ Console: not testedDefault font.
IntelliJ Console: not testedNot widely supported.
IntelliJ Console: not testedBlinking more than 150 times per minute.
IntelliJ Console: not testedAll attributes off.
IntelliJ Console: supportedRarely supported.
IntelliJ Console: not testedRarely supported.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedNot in standard.
IntelliJ Console: not testedBlinking less than 150 times per minute.
IntelliJ Console: not supportedStrike through.
IntelliJ Console: not testedRarely supported.
IntelliJ Console: not testedRarely supported.
IntelliJ Console: not testedUnderline.
IntelliJ Console: not tested -
Method Summary
Modifier and TypeMethodDescriptionintHow many arguments this parameter requires.intThe identifier of this parameter.static SGRParametersReturns the enum constant of this class with the specified name.static SGRParameters[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface de.linusdev.lutils.ansi.sgr.SGRParameter
construct
-
Enum Constant Details
-
RESET
All attributes off.
IntelliJ Console: supported -
BOLD
bold font.
IntelliJ Console: not supported -
FAINT
faint or light font.
IntelliJ Console: not supported -
ITALIC
italic font. (Not widely supported)
IntelliJ Console: supported -
UNDERLINE
Underline.
IntelliJ Console: not tested -
SLOW_BLINk
Blinking less than 150 times per minute.
IntelliJ Console: not supported -
RAPID_BLINK
Blinking more than 150 times per minute.
IntelliJ Console: not tested -
INVERT
Swap foreground and background colors.
IntelliJ Console: not tested -
CONCEAL
Not widely supported.
IntelliJ Console: not tested -
STRIKE
Strike through.
IntelliJ Console: not tested -
PRIMARY
Default font.
IntelliJ Console: not tested -
GOTHIC
Gothic font.
IntelliJ Console: not tested -
DOUBLY_UNDERLINED
-
NOT_BOLD
-
NORMAL_FONT_WEIGHT
-
NOT_ITALIC_OR_BLACK_LETTER
-
NOT_UNDERLINED
-
NOT_BLINKING
-
PROPORTIONAL_SPACING
Not widely supported.
IntelliJ Console: not tested -
NOT_REVERSED
-
REVEAL
-
NOT_STRIKE
-
FOREGROUND_BLACK
Sets foreground color to black.
IntelliJ Console: not tested -
FOREGROUND_RED
Sets foreground color to red.
IntelliJ Console: supported -
FOREGROUND_GREEN
Sets foreground color to green.
IntelliJ Console: not tested -
FOREGROUND_YELLOW
Sets foreground color to yellow.
IntelliJ Console: not tested -
FOREGROUND_BLUE
Sets foreground color to blue.
IntelliJ Console: not tested -
FOREGROUND_MAGENTA
Sets foreground color to magenta.
IntelliJ Console: not tested -
FOREGROUND_CYAN
Sets foreground color to cyan.
IntelliJ Console: not tested -
FOREGROUND_WHITE
Sets foreground color to white.
IntelliJ Console: not tested -
FOREGROUND_COLOR_8_BIT
Sets foreground color to given 8-bit color. First argument must be 5, second is the 8-bit color
IntelliJ Console: not tested -
FOREGROUND_COLOR_24_BIT
Sets foreground color to given 24-bit color. First argument must be 2, second, third and fourth is red, green and blue respectively
IntelliJ Console: not tested -
FOREGROUND_DEFAULT_COLOR
Sets foreground color to the default foreground color
IntelliJ Console: not tested -
BACKGROUND_BLACK
Sets background color to black.
IntelliJ Console: not tested -
BACKGROUND_RED
Sets background color to red.
IntelliJ Console: not tested -
BACKGROUND_GREEN
Sets background color to green.
IntelliJ Console: not tested -
BACKGROUND_YELLOW
Sets background color to yellow.
IntelliJ Console: not tested -
BACKGROUND_BLUE
Sets background color to blue.
IntelliJ Console: not tested -
BACKGROUND_MAGENTA
Sets background color to magenta.
IntelliJ Console: not tested -
BACKGROUND_CYAN
Sets background color to cyan.
IntelliJ Console: not tested -
BACKGROUND_WHITE
Sets background color to white.
IntelliJ Console: not tested -
BACKGROUND_COLOR_8_BIT
Sets background color to given 8-bit color. First argument must be 5, second is the 8-bit color
IntelliJ Console: not tested -
BACKGROUND_COLOR_24_BIT
Sets background color to given 24-bit color. First argument must be 2, second, third and fourth is red, green and blue respectively
IntelliJ Console: not tested -
BACKGROUND_DEFAULT_COLOR
Sets background color to the default background color
IntelliJ Console: not tested -
DISABLED_PROPORTIONAL_SPACING
-
FRAMED
Framed.
IntelliJ Console: not tested -
ENCIRCLED
Encircled.
IntelliJ Console: not tested -
OVERLINED
Overlined.
IntelliJ Console: not tested -
NEITHER_FRAMED_NOR_ENCIRCLED
-
NOT_OVERLINED
-
SET_UNDERLINE_COLOR_8_BIT
Not in standard.
IntelliJ Console: not tested -
SET_UNDERLINE_COLOR_24_BIT
Not in standard.
IntelliJ Console: not tested -
DEFAULT_UNDERLINE_COLOR
Not in standard.
IntelliJ Console: not tested -
IDEOGRAM_UNDERLINE
Rarely supported.
IntelliJ Console: not tested -
RIGHT_SIDE_LINE
Rarely supported.
IntelliJ Console: not tested -
IDEOGRAM_DOUBLE_UNDERLINE
Rarely supported.
IntelliJ Console: not tested -
RIGHT_SIDE_DOUBLE_LINE
Rarely supported.
IntelliJ Console: not tested -
IDEOGRAM_OVERLINE
Rarely supported.
IntelliJ Console: not tested -
LEFT_SIDE_LINE
Rarely supported.
IntelliJ Console: not tested -
IDEOGRAM_DOUBLE_OVERLINE
Rarely supported.
IntelliJ Console: not tested -
LEFT_SIDE_DOUBLE_LINE
Rarely supported.
IntelliJ Console: not tested -
IDEOGRAM_STRESS_MARKING
Rarely supported.
IntelliJ Console: not tested -
NO_IDEOGRAM_ATTRIBUTES
Rarely supported. Resets Ideogram and left/right side line
IntelliJ Console: not tested -
SUPERSCRIPT
Rarely supported.
IntelliJ Console: not tested -
SUBSCRIPT
Rarely supported.
IntelliJ Console: not tested -
NOT_SUPERSCRIPT_NOR_SUBSCRIPT
-
FOREGROUND_BRIGHT_BLACK
Not in standard.
IntelliJ Console: not tested -
FOREGROUND_BRIGHT_RED
Not in standard.
IntelliJ Console: not tested -
FOREGROUND_BRIGHT_GREEN
Not in standard.
IntelliJ Console: not tested -
FOREGROUND_BRIGHT_YELLOW
Not in standard.
IntelliJ Console: not tested -
FOREGROUND_BRIGHT_BLUE
Not in standard.
IntelliJ Console: not tested -
FOREGROUND_BRIGHT_MAGENTA
Not in standard.
IntelliJ Console: not tested -
FOREGROUND_BRIGHT_CYAN
Not in standard.
IntelliJ Console: not tested -
FOREGROUND_BRIGHT_WHITE
Not in standard.
IntelliJ Console: not tested -
BACKGROUND_BRIGHT_BLACK
-
BACKGROUND_BRIGHT_RED
Not in standard.
IntelliJ Console: not tested -
BACKGROUND_BRIGHT_GREEN
Not in standard.
IntelliJ Console: not tested -
BACKGROUND_BRIGHT_YELLOW
Not in standard.
IntelliJ Console: not tested -
BACKGROUND_BRIGHT_BLUE
Not in standard.
IntelliJ Console: not tested -
BACKGROUND_BRIGHT_MAGENTA
Not in standard.
IntelliJ Console: not tested -
BACKGROUND_BRIGHT_CYAN
Not in standard.
IntelliJ Console: not tested -
BACKGROUND_BRIGHT_WHITE
Not in standard.
IntelliJ Console: not tested
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getIdentifier
public int getIdentifier()Description copied from interface:SGRParameterThe identifier of this parameter.- Specified by:
getIdentifierin interfaceSGRParameter- Returns:
- code
-
argumentCount
public int argumentCount()Description copied from interface:SGRParameterHow many arguments this parameter requires. Negative numbers for an unknown amount.- Specified by:
argumentCountin interfaceSGRParameter- Returns:
- required number of parameters or any negative number.
-