bindKey

Bind a keyboard key to a function.

The function will be called when the user is prompted for input and he presses the bound key.

Note that by default the tab key is bound to auto-complete the file names that exist in the directory the application was run from. To disable this bind the tab key with the abort function defined in this module: bindKey('\t', abort);

void
bindKey

Parameters

key char

ASCII int value of the key to be bound

func CommandFunc*

the func triggered when they key is pressed

Meta