output of [31m text instead of color

Viewed 7802

I am trying to print coloured text with colorama but when I compile an exe and run following...

from colorama import Fore, Back, Style
print(Fore.RED + 'text')
print(Back.GREEN + 'and with a green background')
print(Style.DIM + 'and in dim text')
print(Style.RESET_ALL)
print('back to normal now')
I get output of::

Output:

[31mtext
[0m
back to normal now

Is it possible to print colors when compiling to pyinstaller exe or is this simply not possible?

2 Answers
Related