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 ConstantsEnum ConstantDescriptionBackspace delayCarriage return delayForm feed delayNewline delayMap CR to NL on outputFill is DEL, else NULUse fill characters for delayMap lower case to upper case on output (Linux/Solaris)Map NL to CR-NLNL performs CR functionNo CR output at column 0Discard EOT's (^D) on outputEnable following output processingExpand tabs to spacesHorizontal tab delayVertical tab delay -
Method Summary
Modifier and TypeMethodDescriptionstatic Attributes.OutputFlagReturns 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
Enable following output processing -
OLCUC
Map lower case to upper case on output (Linux/Solaris) -
ONLCR
Map NL to CR-NL -
OXTABS
Expand tabs to spaces -
ONOEOT
Discard EOT's (^D) on output -
OCRNL
Map CR to NL on output -
ONOCR
No CR output at column 0 -
ONLRET
NL performs CR function -
OFILL
Use fill characters for delay -
NLDLY
Newline delay -
TABDLY
Horizontal tab delay -
CRDLY
Carriage return delay -
FFDLY
Form feed delay -
BSDLY
Backspace delay -
VTDLY
Vertical tab delay -
OFDEL
Fill is DEL, else NUL
-
-
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
-