Package org.jline.keymap
package org.jline.keymap
JLine 3 Keymap Package - Components for handling keyboard input and key bindings.
This package provides the fundamental classes for mapping keyboard input sequences to actions in interactive terminal applications. It enables the creation of customizable key bindings similar to those found in editors like Emacs and Vi.
Key components in this package include:
KeyMap
- Maps key sequences to actions or commandsBindingReader
- Reads input and translates it to bound actions
The keymap system supports:
- Multi-character key sequences (e.g., Escape followed by other keys)
- Special keys like function keys, arrow keys, etc.
- Control key combinations
- Alt/Meta key combinations
- Unicode character input
This package is used extensively by the LineReader
to implement
customizable editing capabilities.
- Since:
- 3.0
-
ClassesClassDescriptionThe BindingReader transforms incoming characters into key bindings.KeyMap<T>The KeyMap class maps keyboard input sequences to operations or actions.