I am writing a program that should write text in different colors. I have escape code RED " \e[31m".However, if I do red on a red background, this will not work. Therefore, I also want to change the background color. I tried to use this "\e[31m\e[94mor even \e[4Xmfor text on a different background, however this does not work. Any ideas for getting red text on a white background?
This is in the format std :: cout <"COLORNAME" ....
Thank!
source
share