bindkeys

bindkeys

Synopsis
bindkeys print the current key bindings
bindkeys --reset reset the key bindings to the JNode defaults
bindkeys --add <action> (<vkSpec> | <character>) add a key binding
bindkeys --remove <action> [<vkSpec> | <character>] remove a key binding
Details
The bindkeys command prints or changes the JNode console's key bindings; i.e. the mapping from key events to input editing actions. The bindkeys form of the command prints the current bindings to standard output, and the bindkeys --reset form resets the bindings to the hard-wired JNode default settings.

The bindkeys --add ... form of the command adds a new binding. The <action> argument specifies an input editing action; e.g. 'KR_ENTER' causes the input editor to append a newline to the input buffer and 'commit' the input line for reading by the shell or application. The <vkSpec> or <character> argument specifies an input event that is mapped to the <action>.

The recognized <action> values are listed in the output the no-argument form of the bindkeys command.

The <vkSpec> values are formed from the "VK_xxx" constants defined by the "java.awt.event.KeyEvent" class and "modifier" names; e.g. "Shift+VK_ENTER".

The <character> values are either single ASCII printable characters or standard ASCII control character names; e.g. "NUL", "CR" and so on.

The bindkeys --add ... form of the command removes a single binding or (if you leave out the optional <vkSpec> or <character> argument) all bindings for the supplied <action>.

Bugs
Changing the key bindings in one JNode console affects all consoles.

The bindkeys command provides no online documentation for what the action codes mean / do.