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 Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Attributes.InputFlag
Returns 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
-
BRKINT
-
IGNPAR
-
PARMRK
-
INPCK
-
ISTRIP
-
INLCR
-
IGNCR
-
ICRNL
-
IXON
-
IXOFF
-
IXANY
-
IMAXBEL
-
IUTF8
-
INORMEOL
-
-
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
-