[Top][All Lists]

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

Re: [Bug-readline] Using SIGINT/rl_free_line_state () in .inputrc?

From: Chet Ramey
Subject: Re: [Bug-readline] Using SIGINT/rl_free_line_state () in .inputrc?
Date: Sun, 28 Mar 2010 16:02:51 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

On 3/27/10 6:36 PM, Tim Landscheidt wrote:

> (The "\\r\n" tells psql to clear its query buffer.) Unfortu-
> nately, this doesn't work if readline is in "quote mode",
> e. g. the preceding line contains an opening "'" or '"'. I
> noticed though that pressing C-c does what I want: It can-
> cels all active thingies and gives me a clean prompt.
>   Unfortunately, I can't use "\C-c" to invoke it as the key
> probably gets passed as SIGINT to readline. Is there another
> way to "call" rl_free_line_state () from a binding defini-
> tion?

Why not bind a key sequence to "abort" and use it in the macro?

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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