This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Tithen Firion
Recipients Tithen Firion
Date 2017-04-15.16:20:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492273260.15.0.200357892895.issue30075@psf.upfronthosting.co.za>
In-reply-to
Content
Windows 10 supports ANSI Escape Sequences ( http://stackoverflow.com/a/38617204/2428152 https://msdn.microsoft.com/en-us/library/windows/desktop/mt638032(v=vs.85).aspx ) but Python just prints escape character. Adding `subprocess.call('', shell=True)` before printing solved the issue.

Test code:

    import subprocess
    print('\033[0;31mTEST\033[0m')
    subprocess.call('', shell=True)
    print('\033[0;31mTEST\033[0m')

output in attachment.

Haven't tested it on other Python versions but it probably occurs on them too.
History
Date User Action Args
2017-04-15 16:21:00Tithen Firionsetrecipients: + Tithen Firion
2017-04-15 16:21:00Tithen Firionsetmessageid: <1492273260.15.0.200357892895.issue30075@psf.upfronthosting.co.za>
2017-04-15 16:20:59Tithen Firionlinkissue30075 messages
2017-04-15 16:20:59Tithen Firioncreate