Re: [Mingw-w64-public] [PATCH mingw-w64] Add include/iscygtty.c

2016-11-10 Thread Mihail Konev
On Thu, Nov 10, 2016 at 11:59:30PM +0500, Mihail Konev wrote: > Running curses in conemu is possible. > > But even then, the iscygtty() is supposed to check > whether it is present with a mintty-like stdin, and nothing else. To reword: conemu handles to an application either a CMD stdin, or a mint

Re: [Mingw-w64-public] [PATCH mingw-w64] Add include/iscygtty.c

2016-11-10 Thread Mihail Konev
There are files that were catenated. Running curses in conemu should be possible with https://conemu.github.io/en/CygwinMsysConnector.html But even then, the iscygtty() is supposed to check whether it is present with a mintty-like stdin, and nothing else. all: test a.exe: main.c $(CC) -

Re: [Mingw-w64-public] [PATCH mingw-w64] Add include/iscygtty.c

2016-11-10 Thread Vincent Torri
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

Re: [Mingw-w64-public] [PATCH mingw-w64] Add include/iscygtty.c

2016-11-09 Thread Vincent Torri
hello just call GetConsoleMode() and check its result to know if the redirection is with a pipe or a console handle Vincent On Thu, Nov 10, 2016 at 1:46 AM, Mihail Konev wrote: > Applications now could call iscygtty(STDIN_FILENO) > in order to detect whether they are running from > Cygwin/MSys

[Mingw-w64-public] [PATCH mingw-w64] Add include/iscygtty.c

2016-11-09 Thread Mihail Konev
Applications now could call iscygtty(STDIN_FILENO) in order to detect whether they are running from Cygwin/MSys terminal. Without that, they have no choice but to think that stdin is redirected from a named pipe. Signed-off-by: Mihail Konev Moved-from: https://github.com/Alexpux/mingw-w64/pull/3