If you are running a Win32 console app, I've made a header file which defines most text color schemes, for example... the API command to change the console text color to red isSo I simply #defined it like soCode:SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED);
I went off on a tangent and ended up defining pretty much every color combination I could think of, and it took a long while to do, so for convienence, I put it here (it's actually 140 combinations :))Code:#define text_red SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED);
So now you can do thistext_foreground_backgroundCode:#include "def_colors.h";
#include <iostream>
int main()
{
text_white_red;
std::cout << "This text is white on red!";
text_lightgrey_cyan;
std::cout << "This text is light grey on cyan!";
text_grey;
std::cout << "This text is plain old grey on black...";
return 0;
}
Maybe I'm just wasting time.... oh well, I know it helped me since I prefer using API commands for console manipulation