Enum ConsoleOutput
- All Implemented Interfaces:
Serializable
,Comparable<ConsoleOutput>
,java.lang.constant.Constable
Specifies how to treat color and dynamic console output.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEnable color and rich output when the current process is attached to a console, disable when not attached to a console.Disable all color and rich output.Enable color and rich output, regardless of whether the current process is attached to a console or not.Enable color and rich output like Rich, but output more detailed message. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsoleOutput
Returns the enum constant of this type with the specified name.static ConsoleOutput[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Plain
Disable all color and rich output. Generate plain text only. -
Auto
Enable color and rich output when the current process is attached to a console, disable when not attached to a console. -
Rich
Enable color and rich output, regardless of whether the current process is attached to a console or not. When not attached to a console, the color and rich output is encoded using ANSI control characters. -
Verbose
Enable color and rich output like Rich, but output more detailed message.- Since:
- 4.3
-
-
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
-