- java.lang.Object
-
- java.lang.Enum<Attributes.InputFlag>
-
- org.jline.terminal.Attributes.InputFlag
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Attributes.InputFlag>
- Enclosing class:
- Attributes
public static enum Attributes.InputFlag extends java.lang.Enum<Attributes.InputFlag>
Input flags that control how terminal input is processed.Input flags determine how the terminal processes input characters before they are made available to the application. These flags control aspects such as character mapping, parity checking, and flow control for input.
Common input flags include:
ICRNL- Map CR to NL on input (convert carriage returns to newlines)INLCR- Map NL to CR on input (convert newlines to carriage returns)IGNCR- Ignore carriage returns on inputIXON- Enable XON/XOFF flow control on outputIXOFF- Enable XON/XOFF flow control on input
Input flags can be accessed and modified using methods like
Attributes.getInputFlag(InputFlag),Attributes.setInputFlag(InputFlag, boolean), andAttributes.setInputFlags(EnumSet).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BRKINTMap BREAK to SIGINTRICRNLMap CR to NLIGNBRKIgnore BREAK conditionIGNCRIgnore CRIGNPARIgnore (discard) parity errorsIMAXBELRing bell on input queue fullINLCRMap NL into CRINORMEOLNormalize end-of-lineINPCKEnable checking of parity errorsISTRIPStrip 8th bit off charsIUCLCMap upper case to lower case on input (Linux/Solaris)IUTF8Maintain state for UTF-8 VERASEIXANYAny char will restart after stopIXOFFEnable input flow controlIXONEnable output flow controlPARMRKMark parity and framing errors
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Attributes.InputFlagvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Attributes.InputFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNBRK
public static final Attributes.InputFlag IGNBRK
Ignore BREAK condition
-
BRKINT
public static final Attributes.InputFlag BRKINT
Map BREAK to SIGINTR
-
IGNPAR
public static final Attributes.InputFlag IGNPAR
Ignore (discard) parity errors
-
PARMRK
public static final Attributes.InputFlag PARMRK
Mark parity and framing errors
-
INPCK
public static final Attributes.InputFlag INPCK
Enable checking of parity errors
-
ISTRIP
public static final Attributes.InputFlag ISTRIP
Strip 8th bit off chars
-
INLCR
public static final Attributes.InputFlag INLCR
Map NL into CR
-
IGNCR
public static final Attributes.InputFlag IGNCR
Ignore CR
-
ICRNL
public static final Attributes.InputFlag ICRNL
Map CR to NL
-
IXON
public static final Attributes.InputFlag IXON
Enable output flow control
-
IXOFF
public static final Attributes.InputFlag IXOFF
Enable input flow control
-
IXANY
public static final Attributes.InputFlag IXANY
Any char will restart after stop
-
IMAXBEL
public static final Attributes.InputFlag IMAXBEL
Ring bell on input queue full
-
IUTF8
public static final Attributes.InputFlag IUTF8
Maintain state for UTF-8 VERASE
-
IUCLC
public static final Attributes.InputFlag IUCLC
Map upper case to lower case on input (Linux/Solaris)
-
INORMEOL
public static final Attributes.InputFlag INORMEOL
Normalize end-of-line
-
-
Method Detail
-
values
public static Attributes.InputFlag[] 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.InputFlag c : Attributes.InputFlag.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.InputFlag 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
-
-