Re: MI testsuite to use PTY for inferior

Eli Zaretskii
2005-08-02T03:45:39Z

> Date: Mon, 1 Aug 2005 16:52:42 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Mark Kettenis <mark.kettenis@xs4all.nl>, gdb-patches@sources.redhat.com
>
> You can't fix it via termios; it isn't a property of the terminal (and
> we don't have a terminal, anyway). It's set by the application startup
> code based on the result of isatty() on fd 0, usually - at least both
> mingw32 and GNU/Linux do it this way.

If this is the buffering you are worried with, it can be fixed with a
call to setvbuf, right?

> The default for non-terminals is block buffered, which if you're
> waiting for output is really annoying.

We could fflush and fsync the MI output stream, if this is the main
annoyance.