On 9/3/18 5:38 PM, Tom Tromey wrote:
> gdb's TUI mode has a special single-key keymap.
> It would be nice if users could add new bindings to this map.

Is it a prefixed map off one of the standard keymaps? If so, users can
bind key sequences starting with that prefix.

> One way would be something like:
> 
> $if gdb
> set keymap tui-single-key
> ...
> $endif
> 
> 
> However, there's no way to make a new named keymap in readline.

What do you think would be the best functional interface for that?
Something like rl_set_keymap_name (char *name, Keymap map)? Another
interface?

> Could you add this?

I am again skeptical that it will get into readline before readline-8.0
goes into beta.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to