On 5/19/16 11:34 PM, [email protected] wrote:
> Hi Chet,
>
> Thanks for explaining your views.
>
> Bash has a facility which I believe is based on binding a key to a
> string which is executed as if entered at the prompt, is that correct?
> Or were you referring to something else?
Yes, that's pretty much it. You use the readline key binding syntax to
bind a string to a key sequence using a separate keymap. Then you bind
that key sequence in the active keymap to a function that will look up
the string in the alternate keymap and execute it as if run by `eval'.
The READLINE_LINE and READLINE_POINT variables allow that command to
modify the line. It's not a perfect fit to what readline could provide
`natively', but it's close.
--
``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]
https://lists.gnu.org/mailman/listinfo/bug-readline