[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: readline: How to unbind _all_ keys
From: |
Chet Ramey |
Subject: |
Re: readline: How to unbind _all_ keys |
Date: |
Mon, 20 May 2019 09:38:13 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 5/19/19 10:43 AM, Henning wrote:
> I don't like to have dozens of key bindings I never use. Currently I
> am issuing lots of lots of bind -r/-u commands to get rid of the
> default bindings. This slows down console startup unnecessarily.
>
> I would really like to have an inputrc command like $removeall or
> something like bind -r/-u all.
> Or is there something undocumented for this purpose?
There is not, and I don't see much point to adding one. If you want to
remove the bindings for all keys, something like this should work:
for ((f=0; f < 256; f++ ))
do
bind -r \\$(printf "%03o" $f)
done
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- readline: How to unbind _all_ keys, Henning, 2019/05/19
- Re: readline: How to unbind _all_ keys, G. Branden Robinson, 2019/05/20
- Re: readline: How to unbind _all_ keys,
Chet Ramey <=
- Re: readline: How to unbind _all_ keys, Henning, 2019/05/21
- Re: readline: How to unbind _all_ keys, Chet Ramey, 2019/05/21
- Re: readline: How to unbind _all_ keys, Henning, 2019/05/22
- Re: readline: How to unbind _all_ keys, Chet Ramey, 2019/05/22
- Re: readline: How to unbind _all_ keys, Henning, 2019/05/24
- Re: readline: How to unbind _all_ keys, Chet Ramey, 2019/05/24
- Re: readline: How to unbind _all_ keys, Henning, 2019/05/25
- previous/next-screen-line (was: readline: How to unbind _all_ keys), Henning, 2019/05/28
- Re: readline: How to unbind _all_ keys, Dennis Williamson, 2019/05/21
- Re: readline: How to unbind _all_ keys, Henning, 2019/05/22