[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: readline: How to unbind _all_ keys

From: G. Branden Robinson
Subject: Re: readline: How to unbind _all_ keys
Date: Mon, 20 May 2019 15:41:33 +1000
User-agent: NeoMutt/20180716

At 2019-05-19T16:43:41+0200, 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?
> And yes, I know, it's soooooooooooooooooo dangerous.

Not dangerous--pointless.  You might as well just close standard input.

Remember that "self-insert" is a binding.

If you removed all bindings, no keystrokes would do _anything_.

You'll also need a binding for "accept-line", or you have no way to tell
readline you're done entering a command.

I think what you're asking for is some switch to just rebind all keys to
"self-insert", except for C-j and C-m, which would go to "accept-line".
This, I can imagine maybe having some utility.  I can't speak for Chet,


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]