Package org.jline.terminal
Enum Class Attributes.ControlFlag
- All Implemented Interfaces:
Serializable
,Comparable<Attributes.ControlFlag>
,Constable
- Enclosing class:
Attributes
Control flags that manage hardware aspects of the terminal.
Control flags determine how the terminal hardware operates. These flags control aspects such as baud rate, character size, parity, and hardware flow control.
Common control flags include:
CS5
,CS6
,CS7
,CS8
- Character size (5-8 bits)CSTOPB
- Use two stop bits instead of onePARENB
- Enable parity generation and detectionPARODD
- Use odd parity instead of evenCLOCAL
- Ignore modem control lines
Control flags can be accessed and modified using methods like Attributes.getControlFlag(ControlFlag)
,
Attributes.setControlFlag(ControlFlag, boolean)
, and Attributes.setControlFlags(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 ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Attributes.ControlFlag
Returns the enum constant of this class with the specified name.static Attributes.ControlFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CIGNORE
-
CS5
-
CS6
-
CS7
-
CS8
-
CSTOPB
-
CREAD
-
PARENB
-
PARODD
-
HUPCL
-
CLOCAL
-
CCTS_OFLOW
-
CRTS_IFLOW
-
CDTR_IFLOW
-
CDSR_OFLOW
-
CCAR_OFLOW
-
-
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
-