]> Savannah Git Hosting - gnulib.git/commit
isatty: Make it return true in Cygwin consoles on native Windows.
authorBruno Haible <bruno@clisp.org>
Thu, 14 Mar 2019 22:54:28 +0000 (23:54 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 14 Mar 2019 22:54:28 +0000 (23:54 +0100)
commita336be6b8c12a99506bf4fbe654108bd179704b7
tree9584b0bc90a4dd56ac81d83a0175b5025dc5f56f
parent05044004157556f2c41e35b3823688a984722d15
isatty: Make it return true in Cygwin consoles on native Windows.

* lib/isatty.c: Include <string.h>.
(GetProcAddress): New macro.
(GetNamedPipeClientProcessIdFuncType): New type.
(GetNamedPipeClientProcessIdFunc): New variable.
(QueryFullProcessImageNameFuncType): New type.
(QueryFullProcessImageNameFunc): New variable.
(initialized): New variable.
(initialize): New function.
(IsCygwinConsoleHandle): New function.
(isatty): Invoke it.
* doc/posix-functions/isatty.texi: Mention the issue.
ChangeLog
doc/posix-functions/isatty.texi
lib/isatty.c