We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I use MINGW64 and wonder how to get colored text output from programs started with winpty.
winpty
Example: Colored text works when program is not using winpty:
But for programs started with winpty the text colors are missing
I use winpty version 0.4.3
Thanks!
The text was updated successfully, but these errors were encountered:
Try this:
$ winpty python -c "from ctypes import *; windll.kernel32.SetConsoleMode(windll.kernel32.GetStdHandle(-11), 7); print('\033[32mGreen\033[m')"
For detail, see the ENABLE_VIRTUAL_TERMINAL_PROCESSING flag of SetConsoleMode().
ENABLE_VIRTUAL_TERMINAL_PROCESSING
Sorry, something went wrong.
With colorama it can work without Windows 10:
winpty python -c "from colorama import init; init(); ..."
No branches or pull requests
Hi,
I use MINGW64 and wonder how to get colored text output from programs started with
winpty
.Example:
Colored text works when program is not using winpty:
But for programs started with winpty the text colors are missing
I use winpty version 0.4.3
Thanks!
The text was updated successfully, but these errors were encountered: