![]() |
Error printing colored text - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Error printing colored text (/thread-24166.html) |
Error printing colored text - julio2000 - Feb-02-2020 print('\033[31m' + 'Hello' + '\033[0m') # this prints 'hello' in red textSo when I run this in Pycharm it works and prints out 'hello' in red text like I want it to. But when I run the python file on my computer (so I just run the file, outside Pycharm), this is the output: [31mHello[0m So it doesn't print the red text. Does anybody know why this is, and how to solve it? |