I would like to be able to print text lines in console in different colors based on the program logic for ex :(Pass green, Fail red).
Amongst libraries I tried is colorama.
When I try to use it as per their example:
import colorama
from colorama import Fore, Back, Style
colorama.init()
text = "The quick brown fox jumps over the lazy dog"
print(Fore.GREEN + text)
print(Back.RED + text )
all I get in console is this:
[32mThe quick brown fox jumps over the lazy dog
[41mThe quick brown fox jumps over the lazy dog
Thanks