Package org.jline.terminal
Enum Class Attributes.LocalFlag
- All Implemented Interfaces:
Serializable,Comparable<Attributes.LocalFlag>,Constable
- Enclosing class:
Attributes
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 charactersICANON- Enable canonical mode (line-by-line input)ISIG- Enable signal generation (INTR, QUIT, SUSP)IEXTEN- Enable extended input processingECHOCTL- 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse alternate WERASE algorithmEnable echoingEcho control chars as ^(Char)Visually erase charsEcho NL after line killVisual erase for line killEcho NL even if ECHO is offVisual erase mode for hardcopyExternal processingOutput being flushed (state)Canonicalize input linesEnable DISCARD and LNEXTEnable signals INTR, QUIT, [D]SUSPDon't flush after interruptNo kernel output from VSTATUSRetype pending input (state)Stop background jobs from outputCanonical upper/lower presentation (Linux/Solaris) -
Method Summary
Modifier and TypeMethodDescriptionstatic Attributes.LocalFlagReturns the enum constant of this class with the specified name.static Attributes.LocalFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ECHOKE
Visual erase for line kill -
ECHOE
Visually erase chars -
ECHOK
Echo NL after line kill -
ECHO
Enable echoing -
ECHONL
Echo NL even if ECHO is off -
ECHOPRT
Visual erase mode for hardcopy -
ECHOCTL
Echo control chars as ^(Char) -
ISIG
Enable signals INTR, QUIT, [D]SUSP -
ICANON
Canonicalize input lines -
XCASE
Canonical upper/lower presentation (Linux/Solaris) -
ALTWERASE
Use alternate WERASE algorithm -
IEXTEN
Enable DISCARD and LNEXT -
EXTPROC
External processing -
TOSTOP
Stop background jobs from output -
FLUSHO
Output being flushed (state) -
NOKERNINFO
No kernel output from VSTATUS -
PENDIN
Retype pending input (state) -
NOFLSH
Don't flush after interrupt
-
-
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
-