Files
git/compat
Karsten Blees 141cbed5a1 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>
2013-05-25 13:36:41 +01:00
..
2013-01-10 13:47:20 -08:00
2009-03-02 18:28:06 -08:00
2013-05-25 13:36:39 +01:00
2007-06-07 00:04:01 -07:00
2010-11-23 16:06:50 -08:00
2011-09-11 14:43:33 -07:00
2013-04-12 12:23:20 -07:00
2009-09-18 20:00:42 -07:00