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

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

2016-11-10 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

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

2016-11-10 Thread Mihail Konev
There are files that were catenated. CFLAGS += -Wall -Wextra -O3 all: @echo $(MAKE) normal @echo $(MAKE) pedantic @echo $(MAKE) ansi @echo .PHONY: normal normal: $(LINK.c) -o a.exe main.c .PHONY: pedantic pedantic: CFLAGS += -pedant

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

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

2016-11-10 Thread Mihail Konev
Wrong destination address :) I didn't tried ConEmu. Is it possible to run cygwin curses app in it, like a text editor, btw? But with msys mintty and standard Console results do differ. - Forwarded message from Mihail Konev - From: Mihail Konev To: Vincent Torri Date: Thu, 10 Nov 2016

[Mingw-w64-public] [k....@ya.ru: Re: Fwd: [PATCH mingw-w64] Add include/iscygtty.c]

2016-11-10 Thread Mihail Konev
- Forwarded message from Mihail Konev - From: Mihail Konev To: David Wohlferd Date: Thu, 10 Nov 2016 23:22:48 +0500 Subject: Re: Fwd: [Mingw-w64-public] [PATCH mingw-w64] Add include/iscygtty.c On Wed, Nov 09, 2016 at 08:21:51PM -0800, David Wohlferd wrote: > Shouldn't these (and the r

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