On Sun, Feb 22, 2009 at 7:44 PM, Ben Klein <span dir="ltr">&lt;<a href="mailto:shacklein@gmail.com">shacklein@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
...<div><div class="Wj3C7c"><br>
</div></div>#include &lt;unistd.h&gt; and use isatty() would be the correct way to do<br>
it. But is a dialog box that only appears when not being run from a<br>
terminal really such a good idea?<br>
</blockquote></div><br>Does wine have a global handle to a file descriptor that can be used in a call to isatty()?&nbsp; My suggestion (maybe this wasn&#39;t clear) was to normally output the diagnostic information to the console, but if the console is not available (if wine was launched from a desktop icon, for example) then to pop up with a dialog.<br>
<br>Erich Hoover<br><a href="mailto:ehoover@mines.edu">ehoover@mines.edu</a><br>