Files
git/compat
Karsten Blees 95dc6b770d Detect console streams more reliably on Windows
GetStdHandle(STD_OUTPUT_HANDLE) doesn't work for stderr if stdout is
redirected. Use _get_osfhandle of the FILE* instead.

_isatty() is true for all character devices (including parallel and serial
ports). Check return value of GetConsoleScreenBufferInfo instead to
reliably detect console handles (also don't initialize internal state from
an uninitialized CONSOLE_SCREEN_BUFFER_INFO structure if the function
fails).

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2011-04-25 00:42:30 +01:00
..
2010-12-16 12:55:36 -08:00
2010-12-16 12:55:36 -08:00
2009-04-22 19:03:39 -07:00
2011-04-25 00:42:27 +01:00
2010-11-23 16:06:50 -08:00
2010-08-14 19:35:38 -07:00
2009-09-18 20:00:42 -07:00