Package org.jline.terminal
Enum Class Terminal.KittyKeyboardMode
- All Implemented Interfaces:
Serializable,Comparable<Terminal.KittyKeyboardMode>,Constable
- Enclosing interface:
Terminal
Enhancement modes for the Kitty Keyboard Protocol.
These modes control which keyboard enhancements the terminal should enable. The protocol uses a flags-based push/pop stack model. Applications push a set of enhancement modes when entering an interactive mode and pop them when leaving.
- 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 ConstantDescriptionDisambiguate escape codes: all keys get unambiguousCSI … uencoding.Report all keys as escape sequences, including plain text keys that would normally be sent as literal characters.Report alternate keys: includes shifted and base-layout key codes in addition to the primary key code.Report event types: distinguishes key press, repeat, and release events.Report associated text: includes the generated text as Unicode codepoints alongside the key event. -
Method Summary
Modifier and TypeMethodDescriptionstatic Terminal.KittyKeyboardModeReturns the enum constant of this class with the specified name.static Terminal.KittyKeyboardMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Disambiguate
Disambiguate escape codes: all keys get unambiguousCSI … uencoding. This is the primary mode used by JLine's line reader. -
ReportEvents
Report event types: distinguishes key press, repeat, and release events. -
ReportAlternates
Report alternate keys: includes shifted and base-layout key codes in addition to the primary key code. -
ReportAllKeys
Report all keys as escape sequences, including plain text keys that would normally be sent as literal characters. -
ReportText
Report associated text: includes the generated text as Unicode codepoints alongside the key event.
-
-
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
-