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 [email protected] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-readline mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-readline