Enum Class Attributes.InputFlag

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

public static enum Attributes.InputFlag extends Enum<Attributes.InputFlag>
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 input
  • IXON - Enable XON/XOFF flow control on output
  • IXOFF - 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: