Package org.jline.utils
Enum AttributedCharSequence.ForceMode
- java.lang.Object
-
- java.lang.Enum<AttributedCharSequence.ForceMode>
-
- org.jline.utils.AttributedCharSequence.ForceMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AttributedCharSequence.ForceMode>
- Enclosing class:
- AttributedCharSequence
public static enum AttributedCharSequence.ForceMode extends java.lang.Enum<AttributedCharSequence.ForceMode>
Enum defining color mode forcing options for ANSI rendering.This enum specifies how color rendering should be forced when generating ANSI escape sequences, regardless of the terminal's reported capabilities.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Force256Colors
Force the use of 256-color mode (8-bit colors).ForceTrueColors
Force the use of true color mode (24-bit RGB colors).None
No forcing; use the terminal's reported color capabilities.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributedCharSequence.ForceMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AttributedCharSequence.ForceMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final AttributedCharSequence.ForceMode None
No forcing; use the terminal's reported color capabilities.
-
Force256Colors
public static final AttributedCharSequence.ForceMode Force256Colors
Force the use of 256-color mode (8-bit colors).
-
ForceTrueColors
public static final AttributedCharSequence.ForceMode ForceTrueColors
Force the use of true color mode (24-bit RGB colors).
-
-
Method Detail
-
values
public static AttributedCharSequence.ForceMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributedCharSequence.ForceMode c : AttributedCharSequence.ForceMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributedCharSequence.ForceMode valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-