Bug 9763 - XWin console output requires pty
Summary: XWin console output requires pty
Status: RESOLVED WONTFIX
Alias: None
Product: cygwin
Classification: Unclassified
Component: Cygwin/X (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Yaakov Selkowitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-19 09:28 UTC by Yaakov Selkowitz
Modified: 2011-12-26 11:07 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yaakov Selkowitz 2009-01-19 09:28:40 UTC
For some reason which I have yet to investigate, XWin requires a tty to
the log to the terminal.  That means it will output to terminal in VTs,
but will not work in ordinary cmd/bash shells without setting
CYGWIN=tty; instead you will see a cmd window briefly flashing on screen
when launched.
Comment 1 Jon Turney 2011-07-01 23:49:11 UTC
Explained at http://cygwin.com/ml/cygwin/2011-05/msg00326.html

In brief: XWin is marked as a GUI application, so it doesn't get a console.  If started from a console, nothing in the cygwin DLL automatically hooks up stdout/stderr to that console, and doing so automatically seems problematic.

Even if CYGWIN=tty goes away, while this apparently inconsistent behaviour (between cmd and cygwin terminal emulators) might confuse people a bit, I don't see this as a big problem as we've always been telling people to look at the logfile rather than stdout anyhow.
Comment 2 Yaakov Selkowitz 2011-12-26 11:07:28 UTC
Mintty is the default terminal now, so I think we can write this off.  Closing.