Detect a Windows console handle correctly using GetConsoleMode
Before adoption: this commit came in with the history the project adopted, so no landing records it.
isatty returns True for the NUL device on Windows. So use GetConsoleMode instead to detect a console handle. See https://bugs.python.org/issue28654 Fixes #1065
authored by Segev Finer · committed by David Lord · parent b919ce7 · Browse files · 2 files+22 added−7 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+22 added−7 removed
- other:+22 added−7 removed