GNU Readline Library. Node: Associating Function Names and Bindings

PREVBinding Keys UPReadline Convenience Functions NEXTAllowing Undoing

2.4.4: Associating Function Names and Bindings

These functions allow you to find out what keys invoke named functions and the functions invoked by a particular key sequence.

Function: Function * rl_named_function (char *name)
Return the function with name name.
Function: Function * rl_function_of_keyseq (char *keyseq, Keymap map, int *type)
Return the function invoked by keyseq in keymap map. If map is NULL, the current keymap is used. If type is not NULL, the type of the object is returned in it (one of ISFUNC, ISKMAP, or ISMACR).
Function: char ** rl_invoking_keyseqs (Function *function)
Return an array of strings representing the key sequences used to invoke function in the current keymap.
Function: char ** rl_invoking_keyseqs_in_map (Function *function, Keymap map)
Return an array of strings representing the key sequences used to invoke function in the keymap map.
Function: void rl_function_dumper (int readable)
Print the readline function names and the key sequences currently bound to them to rl_outstream. If readable is non-zero, the list is formatted in such a way that it can be made part of an inputrc file and re-read.
Function: void rl_list_funmap_names ()
Print the names of all bindable Readline functions to rl_outstream.
PREVBinding Keys UPReadline Convenience Functions NEXTAllowing Undoing