Re: MI testsuite to use PTY for inferior

Daniel Jacobowitz
2005-08-01T19:25:57Z

On Mon, Aug 01, 2005 at 09:01:44PM +0200, Mark Kettenis wrote:
> Date: Mon, 01 Aug 2005 21:45:18 +0300
> From: Eli Zaretskii <eliz@gnu.org>
>
> (Shrug) What about redirecting one of the streams to another file
> handle? I think any modern platform will support this. We could, for
> example, make this an option (it could be on by default if PTYs aren't
> supported).
>
> Terminals are quite different from "normal" pipes. For example stdio
> is line buffered for (pseudo) terminals but normally buffered for
> other streams. So this affects basically any program.

Yes, but I think Eli's still basically right here: if you don't have
PTYs, then preserving terminal semantics isn't terribly important.

The buffering gets annoying on Windows because some applications use
Windows library calls to detect a console and control buffering
accordingly. But we can't handle that, so I wouldn't fret about it too
much.

--
Daniel Jacobowitz
CodeSourcery, LLC