I was advised to use Ansicon to fix a problem with colored text not showing up in the windows terminal. (How to have colored text displayed after converting script into a .exe?) I can't figure out how to use ansicon in my script. Code:
blue = lambda text: '\033[0;34m' + text + '\033[0m'
print(blue('Hello World.'))
I would use colorama but it hasn't been updated past 3.4. When I tried to install via pip it had said that I needed python 3.4 or before. I have installed ansicon but the import command does not want to add it. Does anyone know how to use it?