Console colors - number reference, and setting background.
Posted: 2 Feb 2022 10:09
Hi,
2 questions related to colors in the console -
1) Where is the list of colors and intensities? For now, I'm playing with setTextAttribute( 1, 1 ), which is obviously blue. Is there a specific reference in the .chm help, or in the wiki?
So far, from trial & error, I have this:
constants
con_blue : unsigned = 1.
con_green : unsigned = 2.
con_lightblue : unsigned = 3.
con_red : unsigned = 4.
con_white : unsigned = 6.
4 and 5 seem to be both red.
2) Is there a way to change the default background color? I think the answer is no, and that maybe we have to fill the console with spaces, after setting the default text attribute.
2 questions related to colors in the console -
1) Where is the list of colors and intensities? For now, I'm playing with setTextAttribute( 1, 1 ), which is obviously blue. Is there a specific reference in the .chm help, or in the wiki?
So far, from trial & error, I have this:
constants
con_blue : unsigned = 1.
con_green : unsigned = 2.
con_lightblue : unsigned = 3.
con_red : unsigned = 4.
con_white : unsigned = 6.
4 and 5 seem to be both red.
2) Is there a way to change the default background color? I think the answer is no, and that maybe we have to fill the console with spaces, after setting the default text attribute.