Package org.jline.terminal
Enum Class Attributes.InputFlag
- All Implemented Interfaces:
Serializable,Comparable<Attributes.InputFlag>,Constable
- Enclosing class:
Attributes
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), and Attributes.setInputFlags(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 ConstantDescriptionMap BREAK to SIGINTRMap CR to NLIgnore BREAK conditionIgnore CRIgnore (discard) parity errorsRing bell on input queue fullMap NL into CRNormalize end-of-lineEnable checking of parity errorsStrip 8th bit off charsMap upper case to lower case on input (Linux/Solaris)Maintain state for UTF-8 VERASEAny char will restart after stopEnable input flow controlEnable output flow controlMark parity and framing errors -
Method Summary
Modifier and TypeMethodDescriptionstatic Attributes.InputFlagReturns the enum constant of this class with the specified name.static Attributes.InputFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNBRK
Ignore BREAK condition -
BRKINT
Map BREAK to SIGINTR -
IGNPAR
Ignore (discard) parity errors -
PARMRK
Mark parity and framing errors -
INPCK
Enable checking of parity errors -
ISTRIP
Strip 8th bit off chars -
INLCR
Map NL into CR -
IGNCR
Ignore CR -
ICRNL
Map CR to NL -
IXON
Enable output flow control -
IXOFF
Enable input flow control -
IXANY
Any char will restart after stop -
IMAXBEL
Ring bell on input queue full -
IUTF8
Maintain state for UTF-8 VERASE -
IUCLC
Map upper case to lower case on input (Linux/Solaris) -
INORMEOL
Normalize end-of-line
-
-
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
-