Sebastian Tannert wrote:
> Is there a way to run a function after the user has finished
> a line with RETURN to add characters to the readline buffer?
> Of course one could malloc new memory and copy the stuff got by the
> call of readline but may be there is a more smart way of doing it?

There is no hook to do it, but you could always write a function to
do so and bind it to <newline>.  After doing what you want, just call
rl_newline from your custom function to have the normal readline
end-of-line processing done.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to