Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect a Windows console handle correctly using GetConsoleMode #1135

Merged
merged 1 commit into from
Feb 16, 2020

Conversation

segevfiner
Copy link
Contributor

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

@uranusjr Feel free to test if this fixes your issue

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 pallets#1065
@davidism davidism merged commit bc6eb98 into pallets:7.x Feb 16, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants