I'm trying to use colored output using python
1- I tried to use this format :
print '\033[1;30mGray like Ghost\033[1;m'
I got this output :
←[1;30mGray like Ghost←[1;m
2- I tried to use termcolor package as :
from termcolor import colored, cprint
text = colored('Hello, World!', 'red', attrs=['reverse', 'blink'])
print(text)
I got this output :
[5m[7m[31mHello, World![0m
Why I can't use colors with the output?
I tried other ways and all give almost the same output Is there another way I can try?