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 still don't understand why not using GetConsoleMode() and see if it
fails or not.
if it fails : redirection is done with named pipes
if not : it's standard win32 I/O
it's simple and works in my tests (DOS console, MSYS1, mintty, MSYS2
and cygwin terminal >= 1.8)
Vincent Torri
On Sun, Nov 13,
C99 defines INFINITY and NAN macros as float.
patch is attached.
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studi
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
MSYS2 is a software distribution with both (extremely) Cygwin-like and also
native Windows software, all (usually) launched from mintty.
On Nov 12, 2016 3:41 PM, "Corinna Vinschen" wrote:
> On Nov 12 14:52, Ray Donnelly wrote:
> > On Nov 12, 2016 1:30 PM, "Corinna Vinschen" wrote:
> > >
> > > O
On Nov 12 14:52, Ray Donnelly wrote:
> On Nov 12, 2016 1:30 PM, "Corinna Vinschen" wrote:
> >
> > On Nov 12 12:27, JonY wrote:
> > > On 11/12/2016 11:57, Mihail Konev wrote:
> > > > Applications now could call iscygtty(STDIN_FILENO)
> > > > in order to detect whether they are running from
> > > >
On Nov 12, 2016 1:30 PM, "Corinna Vinschen" wrote:
>
> On Nov 12 12:27, JonY wrote:
> > On 11/12/2016 11:57, Mihail Konev wrote:
> > > Applications now could call iscygtty(STDIN_FILENO)
> > > in order to detect whether they are running from
> > > Cygwin/MSys terminal.
> > >
> > > Without that, the
On Nov 12 12:27, JonY wrote:
> On 11/12/2016 11:57, Mihail Konev wrote:
> > 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 n