Class BindingReader

java.lang.Object
org.jline.keymap.BindingReader

public class BindingReader extends Object
The BindingReader transforms incoming characters into key bindings.

This class reads characters from a NonBlockingReader and maps them to bindings defined in a KeyMap. It handles multi-character key sequences, such as escape sequences for function keys, by reading ahead when necessary.

Key features include:

  • Support for timeout-based disambiguation of key sequences
  • Buffering of input to handle multi-character sequences
  • Support for running macros (predefined sequences of keystrokes)
  • Access to the current input buffer and last binding read

This class is used by the LineReader to read key bindings for line editing operations.