bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isatty: make it return true in Cygwin consoles on native Windows


From: Bruno Haible
Subject: Re: isatty: make it return true in Cygwin consoles on native Windows
Date: Fri, 15 Mar 2019 12:32:55 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

Hi Gisle,

> > +                  && strcmp (buf + strlen (buf) - 11, "\\mintty.exe") == 0)
> 
> What if the .exe has another name?

What other names are in common use for this program?

> The purpose of your function looks similar to what Mihail Konev
> did for the MinGW-w64 project:
>    
> https://mingw-w64-public.narkive.com/s7kYRrtG/patch-mingw-w64-add-include-iscygtty-c
> 
> Instead he looked for pipes matching:
> "\Device\NamedPipe\(cygwin|msys)-[a-fA-F0-9]{16}-pty[0-9]{1,4}-(from-master|to-master|to-master-cyg)"

I prefer to avoid the ntdll.dll API when possible.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]