Enum Class Ansi_Styling
- All Implemented Interfaces:
Serializable,Comparable<Ansi_Styling>,Constable
Nested Enum of ansi escape characters to make rendering more discoverable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription: Moves the cursor up by one line.Makes text blinkRenders text in blue.Turns text into bold: Clears the current line completely.Background of the terminal is resetRenders text in green.Background of text is set to green: Turns text into italicsRenders text in red.Background of text is set to greenResets a style back to default: Returns the cursor to the start of the current line to overwriteAllows text to be struck throughRenders text in yellow.Background of text is set to yellow -
Method Summary
Modifier and TypeMethodDescriptiongetCode()static Stringstatic StringmakeItalic(String message) static StringmoveTextOnScreen(String message, int howFar) static Ansi_StylingReturns the enum constant of this class with the specified name.static Ansi_Styling[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANSI_YELLOW
Renders text in yellow. Mostly used for general purpose debugging -
ANSI_RED
Renders text in red. Mostly used for error messages -
ANSI_BLUE
Renders text in blue. Mostly used for network debugging -
ANSI_GREEN
Renders text in green. Mostly used for internal server pretty printing -
ANSI_CLEAR_LINE
: Clears the current line completely. -
ANSI_BACK_UP
: Moves the cursor up by one line. -
ANSI_START_OF_LINE
: Returns the cursor to the start of the current line to overwrite -
ANSI_ITALICS
: Turns text into italics -
ANSI_BOLD
Turns text into bold -
ANSI_STRIKETHROUGH
Allows text to be struck through -
ANSI_YELLOW_BG
Background of text is set to yellow -
ANSI_BLINK
Makes text blink -
ANSI_GREEN_BG
Background of text is set to green -
ANSI_RED_BG
Background of text is set to green -
ANSI_DEFAULT_BG
Background of the terminal is reset -
ANSI_RESET
Resets a style back to default
-
-
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
-
getCode
-
makeItalic
-
makeBold
-
moveTextOnScreen
-