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 ConstantDescriptionDCD flow control of outputCTS flow control of outputDSR flow control of outputDTR flow control of inputIgnore control flagsIgnore modem status linesEnable receiverRTS flow control of input5 bits per character6 bits per character7 bits per character8 bits per characterSend 2 stop bitsHang up on last closeParity enableOdd parity, else even -
Method Summary
Modifier and TypeMethodDescriptionstatic Attributes.ControlFlagReturns 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
Ignore control flags -
CS5
5 bits per character -
CS6
6 bits per character -
CS7
7 bits per character -
CS8
8 bits per character -
CSTOPB
Send 2 stop bits -
CREAD
Enable receiver -
PARENB
Parity enable -
PARODD
Odd parity, else even -
HUPCL
Hang up on last close -
CLOCAL
Ignore modem status lines -
CCTS_OFLOW
CTS flow control of output -
CRTS_IFLOW
RTS flow control of input -
CDTR_IFLOW
DTR flow control of input -
CDSR_OFLOW
DSR flow control of output -
CCAR_OFLOW
DCD flow control of output
-
-
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
-