There was a function in C to adjust background color? (It was actually a Dos Command) -


I am looking for system function to adjust background color.

System ("color", some color code); Do anyone know about this?

Windows XP or 7!

This is "color XX" where the first X is the background and the second x is the foreground.

The codes are as follows:

  0 = black 8 = gray 1 = blue 9 = light blue 2 = green a = light green 3 = aqua b = light aqua 4 = Red C = Light Red 5 = Purple D = Light Purple 6 = Yellow E = Light Yellow 7 = White F = Sharp White  

So basically black color on white brown For, you do

  system ("color 70");  

Windows only, though


Comments