On 7/15/13 2:13 PM, Mara Kim wrote:
> Hi Chet,
>
> Is there any way to change this behavior? At the very least, I would want
> to return the line immediately instead of inserting an eof and allowing
> more input (current behaviour)
I'm not sure what you mean. The current behavior is to return the line
immediately. When readline reads the tty eof character, it sets rl_done
and breaks out of the character reading loop. readline() ends up returning
a NULL pointer in this case. It's up to the calling application to react
to the NULL pointer.
Chet
--
``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