On Sun, Nov 13, 2016 at 07:16:01AM +0100, Vincent Torri wrote:
> i still don't understand why not using GetConsoleMode() and see if it
> fails or not.
> 
> if it fails : redirection is done with named pipes
Redirection is then done, but is it a file or mintty stdin ?

> if not : it's standard win32 I/O
The CMD.exe console stdin.

> 
> it's simple and works in my tests (DOS console, MSYS1, mintty, MSYS2
> and cygwin terminal >= 1.8)
> 
This must be the same as standard _isatty(),
except not returning true for NUL or /dev/null.


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to