- java.lang.Object
-
- java.lang.Enum<Attributes.OutputFlag>
-
- org.jline.terminal.Attributes.OutputFlag
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Attributes.OutputFlag>
- Enclosing class:
- Attributes
public static enum Attributes.OutputFlag extends java.lang.Enum<Attributes.OutputFlag>
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), andAttributes.setOutputFlags(EnumSet).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BSDLYBackspace delayCRDLYCarriage return delayFFDLYForm feed delayNLDLYNewline delayOCRNLMap CR to NL on outputOFDELFill is DEL, else NULOFILLUse fill characters for delayOLCUCMap lower case to upper case on output (Linux/Solaris)ONLCRMap NL to CR-NLONLRETNL performs CR functionONOCRNo CR output at column 0ONOEOTDiscard EOT's (^D) on outputOPOSTEnable following output processingOXTABSExpand tabs to spacesTABDLYHorizontal tab delayVTDLYVertical tab delay
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Attributes.OutputFlagvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Attributes.OutputFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPOST
public static final Attributes.OutputFlag OPOST
Enable following output processing
-
OLCUC
public static final Attributes.OutputFlag OLCUC
Map lower case to upper case on output (Linux/Solaris)
-
ONLCR
public static final Attributes.OutputFlag ONLCR
Map NL to CR-NL
-
OXTABS
public static final Attributes.OutputFlag OXTABS
Expand tabs to spaces
-
ONOEOT
public static final Attributes.OutputFlag ONOEOT
Discard EOT's (^D) on output
-
OCRNL
public static final Attributes.OutputFlag OCRNL
Map CR to NL on output
-
ONOCR
public static final Attributes.OutputFlag ONOCR
No CR output at column 0
-
ONLRET
public static final Attributes.OutputFlag ONLRET
NL performs CR function
-
OFILL
public static final Attributes.OutputFlag OFILL
Use fill characters for delay
-
NLDLY
public static final Attributes.OutputFlag NLDLY
Newline delay
-
TABDLY
public static final Attributes.OutputFlag TABDLY
Horizontal tab delay
-
CRDLY
public static final Attributes.OutputFlag CRDLY
Carriage return delay
-
FFDLY
public static final Attributes.OutputFlag FFDLY
Form feed delay
-
BSDLY
public static final Attributes.OutputFlag BSDLY
Backspace delay
-
VTDLY
public static final Attributes.OutputFlag VTDLY
Vertical tab delay
-
OFDEL
public static final Attributes.OutputFlag OFDEL
Fill is DEL, else NUL
-
-
Method Detail
-
values
public static Attributes.OutputFlag[] 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 (Attributes.OutputFlag c : Attributes.OutputFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Attributes.OutputFlag 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
-
-