Enum Class Attributes.LocalFlag

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

public static enum Attributes.LocalFlag extends Enum<Attributes.LocalFlag>
Local flags that control various terminal behaviors.

Local flags control a variety of terminal behaviors that don't fit into the other flag categories. These include echo control, canonical mode, signal generation, and special character processing.

Common local flags include:

  • ECHO - Echo input characters
  • ICANON - Enable canonical mode (line-by-line input)
  • ISIG - Enable signal generation (INTR, QUIT, SUSP)
  • IEXTEN - Enable extended input processing
  • ECHOCTL - Echo control characters as ^X

Note: Some flags in this category begin with the letter "I" and might appear to belong in the input flags category, but they are historically part of the local flags.

Local flags can be accessed and modified using methods like Attributes.getLocalFlag(LocalFlag), Attributes.setLocalFlag(LocalFlag, boolean), and Attributes.setLocalFlags(EnumSet).

See Also:
  • Enum Constant Details

  • Method Details

    • values

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