two cases :

1) pipe redirection : mintty and therefore cygwin (>= 1.8) terminal
and MSYS2 terminal (as the 2 latters are based on mintty)
2) MSYS1 and CMD console

ConEmu is a specific case as, if i'm not mistaken, it can switch from
one redirection to the other one

Vincent

PS: i've also replied to the mingw-w64 ML, Mihail, maybe you should
send again the files to the ML

On Thu, Nov 10, 2016 at 7:13 PM, Mihail Konev <k....@ya.ru> wrote:
> On Thu, Nov 10, 2016 at 06:16:38AM +0100, Vincent Torri wrote:
>> just call GetConsoleMode() and check its result to know if the
>> redirection is with a pipe or a console handle
> The result would then differ in two cases:
> - stdin is Cygwin/MSys terminal
> - stdin is Windows console
>
> Attached are test program source, Makefile, and 'make' output when run
> from MSys2-MINGW64 shell.

------------------------------------------------------------------------------
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