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:
  • Enum Constant Details

  • Method Details

    • values

      public static Attributes.InputFlag[] 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

      public static Attributes.InputFlag valueOf(String name)
      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 name
      NullPointerException - if the argument is null