- All Implemented Interfaces:
Serializable
,Comparable<SGR>
,java.lang.constant.Constable
SGR - Select Graphic Rendition, changes the state of the terminal as to what kind of text to print after this
command. When working with the Terminal interface, its keeping a state of which SGR codes are active, so activating
one of these codes will make it apply to all text until you explicitly deactivate it. When you work with Screen and
GUI systems, usually the SGR is a property of an independent character and won't affect others.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionText will blink on the screen by alternating the foreground color between the real foreground color and the background color.Bold text mode.Draws a border around the text.Draws a circle around the text.Draws a horizontal line through the text.I have no idea, exotic extension, please send me a reference screen shots!Italic (cursive) text mode.Reverse text mode, will flip the foreground and background colors while activeDraws a horizontal line under the text. -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
BOLD
Bold text mode. Please note that on some terminal implementations, instead of (or in addition to) making the text bold, it will draw the text in a slightly different color -
REVERSE
Reverse text mode, will flip the foreground and background colors while active -
UNDERLINE
Draws a horizontal line under the text. Not widely supported. -
BLINK
Text will blink on the screen by alternating the foreground color between the real foreground color and the background color. Not widely supported. -
BORDERED
Draws a border around the text. Rarely supported. -
FRAKTUR
I have no idea, exotic extension, please send me a reference screen shots! -
CROSSED_OUT
Draws a horizontal line through the text. Rarely supported. -
CIRCLED
Draws a circle around the text. Rarely supported. -
ITALIC
Italic (cursive) text mode. Some Terminal seem to support it.
-
-
Constructor Details
-
SGR
private SGR()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-