I am currently using the colorama package to color messages generated by my build scripts. I have also used scolorizer, which replaces the build commands with custom, colored messages using strfunctio
I am trying to print a text in the terminal using echo开发者_Python百科 command. I want to print the text in a red color. How can I do that?You can use these ANSI escape codes:
Using terminal sequences, I can colour t开发者_如何学JAVAext in a terminal emulator: $ echo -e \'\\e[37;41m--this is white on red--\\e[0m\'