This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Flawed patch to capture inferior output
On Sun, Oct 07, 2001 at 02:59:56PM -0600, Tom Tromey wrote:
>>>>>> "Chris" == Christopher Faylor <cgf@redhat.com> writes:
>Chris> The hard part is accomodating the various types of pty access
>Chris> methods out there but there should be generic software around
>Chris> that opens a pty in a way similar to a pipe and does the
>Chris> equivalent of a popen().
>
>Yeah. I'll keep a copy of this patch; if I ever get inspired and find
>code like this I'll dig it up again.
I did a little digging and found that the GNU inetutils package has a
generic implementation of openpty() and forkpty(). I don't know if they
are completely portable. They do work on Cygwin and Linux for sure,
though.
cgf