You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
windows 10(ver 1607) cmd.exe ansi color text not work. #46
windows 10 (v1607) with python 3.5.1 and python 3.5.2 ,pyreadline ansi color text output in cmd.exe(windws 10.0.14393]),not work,ansi escape code control string just output trash charactor.
The problem is caused because after the Windows Anniversary update, CMD of Windows does not support ANSI color by default and it must be activated using ctypes to enable ENABLE_VIRTUAL_TERMINAL_PROCESSING flag.
Activity
RDCH106 commentedon Oct 5, 2016
Try this Fix:
RDCH106/SimplePythonTools@ca6def5
You can apply the Fix in the main file of your program where you call the library or the straightforward way is fixing library in the following file:
https://github.com/pyreadline/pyreadline/blob/master/pyreadline/console/ansi.py
The problem is caused because after the Windows Anniversary update, CMD of Windows does not support ANSI color by default and it must be activated using ctypes to enable
ENABLE_VIRTUAL_TERMINAL_PROCESSINGflag.Here's the Gist with the necessary code:
https://gist.github.com/RDCH106/6562cc7136b30a5c59628501d87906f7
eabase commentedon Jan 14, 2022
To enable colors in the Python REPL.
import os; os.system('')