I want to change the color of a text . Of course I don't want to make a GUI for my program. I want to do that just for Terminal . As an example please change this :
print("Hello SO !")
I want to change the color of a text . Of course I don't want to make a GUI for my program. I want to do that just for Terminal . As an example please change this :
print("Hello SO !")
pip install termcolor
Run this code:
from termcolor import colored
print(colored("Hello world in red style!", 'red'))
use windows powershell or unix shell
You could use ANSI color codes. Unfortunately, I believe this only works on Linux-based systems.