[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] no way to make a new named keymap
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] no way to make a new named keymap |
Date: |
Tue, 4 Sep 2018 10:56:24 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
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 address@hidden http://tiswww.cwru.edu/~chet/