Enum Class Attributes.ControlFlag

java.lang.Object
java.lang.Enum<Attributes.ControlFlag>
org.jline.terminal.Attributes.ControlFlag
All Implemented Interfaces:
Serializable, Comparable<Attributes.ControlFlag>, Constable
Enclosing class:
Attributes

public static enum Attributes.ControlFlag extends Enum<Attributes.ControlFlag>
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 one
  • PARENB - Enable parity generation and detection
  • PARODD - Use odd parity instead of even
  • CLOCAL - 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: