Console texts etc

1
2
3
4
5
6
7
void coutc(int color, char* output)
{
HANDLE handle= GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute( handle, color);
cout<< output;
SetConsoleTextAttribute( handle, grey);
}


here's the code that I use to change color of text in a console app, but the text background is always black...is there any way to change the text background color? And how could I set the background color for the rest of the console?
Topic archived. No new replies allowed.