Package org.jline.terminal
Enum Class Attributes.OutputFlag
- All Implemented Interfaces:
Serializable
,Comparable<Attributes.OutputFlag>
,Constable
- Enclosing class:
Attributes
Output flags that control how terminal output is processed.
Output flags determine how the terminal processes output characters before they are sent to the terminal device. These flags control aspects such as newline translation, tab expansion, and other output processing features.
Common output flags include:
OPOST
- Enable output processing (required for other output flags to take effect)ONLCR
- Map NL to CR-NL on output (convert newlines to carriage return + newline)OCRNL
- Map CR to NL on output (convert carriage returns to newlines)OXTABS
- Expand tabs to spaces on output
Output flags can be accessed and modified using methods like Attributes.getOutputFlag(OutputFlag)
,
Attributes.setOutputFlag(OutputFlag, boolean)
, and Attributes.setOutputFlags(EnumSet)
.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Attributes.OutputFlag
Returns the enum constant of this class with the specified name.static Attributes.OutputFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPOST
-
ONLCR
-
OXTABS
-
ONOEOT
-
OCRNL
-
ONOCR
-
ONLRET
-
OFILL
-
NLDLY
-
TABDLY
-
CRDLY
-
FFDLY
-
BSDLY
-
VTDLY
-
OFDEL
-
-
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
-