On 9/2/18 6:37 PM, Tom Tromey wrote:
> Hi.
>
> I'd like to be able to let users add new readline functions via a
> scripting language. To this end, what I'd like is to be able to pass a
> bit of arbitrary data to rl_add_defun or rl_bind_key, and then have this
> data be later passed, verbatim, to the callback.
>
> So, something like:
>
> typedef int rl_command_funcx_t (int, int, void *);
> int rl_add_defunx (const char *name, rl_command_funcx_t *function,
> void *user_data, int key)
>
> (The names here are just placeholders.)
>
> I can take a stab at this if desired.
Sure, I'd be interested in this. It's close enough to bash-5.0/readline-8.0
going into beta that I'm skeptical it would be ready in time for that, but
certainly for the next major release.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline