help-bash
[Top][All Lists]
Advanced

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

Re: how to save/restore (all?) bindings


From: Chet Ramey
Subject: Re: how to save/restore (all?) bindings
Date: Fri, 20 Oct 2023 09:53:17 -0400
User-agent: Mozilla Thunderbird

On 10/19/23 7:29 PM, Christoph Anton Mitterer wrote:

=> So seems, that the bind -r has an effect on anything "already
    queued".
    It works also when removing after the sleep:
    bind -x '"\C-f": echo foo; sleep 5; bind -r "\C-a"'

Characters are queued, not readline commands. So if a key binding isn't
there by the time the key sequence is read, there's no action to take.

--
``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/




reply via email to

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