Chet Ramey <[email protected]> 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? a) I tried: | "\C-xa": abort | "\e[24~": "\C-xa\fSELECT * FROM DashboardQuery;\n" and | "\e[24~": "\C-g\fSELECT * FROM DashboardQuery;\n" but neither did /anything/. If I prepended the \C-g with other text, that got inserted, but the processing stopped at the \C-g. b) Pressing C-g interactively does not what C-c does for me. In fact, it merely cancels C-r & Co., but does not delete the query buffer, cancel "quote mode", etc. Tim _______________________________________________ Bug-readline mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-readline
