KeytabInputHandler class

A TerminalInputHandler that translates key events according to a keytab file. If no keytab is provided, Keytab.defaultKeytab is used.

Unlike xterm 4.0.0, the keytab's AppCuKeys mode follows the terminal's application cursor keys mode (DECCKM), so the arrow keys send ESC O A after CSI ? 1 h; xterm tied it to the application keypad mode.

Implemented types

Constructors

KeytabInputHandler([Keytab? keytab])
Creates a handler that looks keys up in keytab, or in Keytab.defaultKeytab when it is null.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
keytab → Keytab?
The keytab keys are looked up in; null means Keytab.defaultKeytab.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(TerminalKeyboardEvent event) → String?
Translates a TerminalKeyboardEvent into an escape sequence. If the event cannot be translated, null is returned.
override
insertModifiers(TerminalKeyboardEvent event, String action) → String
Replaces each * in action with the xterm modifier parameter for the event's modifiers (2 Shift, 3 Alt, 4 Shift+Alt, 5 Control, 6 Shift+Control, 7 Control+Alt, 8 all three). Without modifiers action is returned unchanged.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited