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

2016-11-11 Thread Mihail Konev
On Sat, Nov 12, 2016 at 12:06:02PM +0500, Mihail Konev wrote: > > Doing it through shared memory should be depenedent on cygwin headers > (if reliable at all for not-a-cygwin-process-child). > Oh. We *are* cygwin-fork()-ed if running from a mintty ;) But still this should be more cygwin-dependen

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

2016-11-11 Thread Mihail Konev
On Sat, Nov 12, 2016 at 06:34:54AM +0500, Mihail Konev wrote: > On Fri, Nov 11, 2016 at 11:19:45AM -0500, Earnie wrote: > > On 11/10/2016 5:43 PM, Mihail Konev wrote: > > > Applications now could call iscygtty(STDIN_FILENO) > > > in order to detect whether they are running from > > > Cygwin/MSys te

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

2016-11-11 Thread Mihail Konev
On Fri, Nov 11, 2016 at 11:19:45AM -0500, Earnie wrote: > On 11/10/2016 5:43 PM, Mihail Konev wrote: > > Applications now could call iscygtty(STDIN_FILENO) > > in order to detect whether they are running from > > Cygwin/MSys terminal. > > > > Should this be shared with Cygwin so that a similar fu

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

2016-11-11 Thread Earnie
On 11/10/2016 5:43 PM, Mihail Konev wrote: > Applications now could call iscygtty(STDIN_FILENO) > in order to detect whether they are running from > Cygwin/MSys terminal. > Should this be shared with Cygwin so that a similar function exists in its C API? -- Earnie -

[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