0
why this python color codes are not working in windows os?
class bcolors: GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' PINK = '\033[95m' BLUE = '\033[94m' BOLD = '\033[1m' ENDC = '\033[0m' print(bcolors.BLUE+"Hello World") # working fine in Linux terminal
3 Answers
+ 1
It's working fine on pycharm.
What do you mean by windows?
This first answer to this question might help you:
https://stackoverflow.com/questions/287871/how-to-print-colored-text-to-the-terminal
Okay this might help you:
https://stackoverflow.com/questions/36760127/how-to-use-the-new-support-for-ansi-escape-sequences-in-the-windows-10-console
+ 1
The future is now thanks to science[INACTIVE]
not working in windows operating system on python shell as well as inside cmd
when I run code showing some weired ANSI chars
+ 1
1. Use Visual Studio code or pycharm
2. Use colorama module in python for better performance
####### steps to install module#########
1. open CMD
2. type - pip install colorama