I want to show the output messages in red color.
I have used the following code on Linux. It displays the messages in red colour.
def red(name):
print ("\033[91m {}\033[00m" .format(name))
red('This should be displayed in red colour')
But when I use the same code on windows, it does not show in color.
Is there any common code which will work on both the OS ?
Where can I find the color codes ?
EDIT:
On windows command prompt, message was displayed like [91m This should be displayed in red colour[00m