I'm writing a program that needs to write text in different colors. I have the escape code RED "\e[31m". However, if I make red on a red background, that won't work. So I also want to change the background color. I've tried using this "\e[31m\e[94m" or even \e[4Xm to do text on a different background, however, this isn't working. Any ideas to get red text on a white background?
This is in the format std::cout << "COLORNAME" ....
Thanks!