Re: Make "git clone" less of a deathly quiet experience
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Feb 11, 2006, 17:24 UTC
- Message-ID
- <20060211172403.GA10099@steel.home>
- In-Reply-To
- <20060211133340.GS31278@pasky.or.cz>
Petr Baudis, Sat, Feb 11, 2006 14:33:40 +0100:
Show 5 quoted lines
> > It probably should default to quiet if (!isatty(1)). > > isatty(2) or something, 1 is in practice always a ref generator. Perhaps > it would be better not to clutter stderr, though; what about directly > opening /dev/tty? Does Cygwin support that?
It can't. Windows has no terminals (as in "none at all"). It has a Console, which is a special kind of window attached to an application and where the unbuffered stdout and stderr are magically redirected.
A test for is stdout/err is a tty can only check if the process has the console attached, and an attempt to open it for writing will probably just create the thing.