Robert Collins wrote:
> ptys and buffering are orthogonal. IIRC ptys by default are line
> buffered anyway.
The original poster was asking about the
case when you don't have the source code
for what you are driving, if I'm not mistaken.
On Sun, 2002-09-08 at 16:37, Erik de Castro Lopo wrote:
> The only way I know of doing this is my setting the programm
> up to talk to your own program via a pty (psuedo terminal).
> There is an example of this in the late Richard Steven's book
> "Advanced Programming in a Unix Environment".
That code is available on the net, for example
from his home page:
http://www.kohala.com/start/
Regards,
Matt
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug