The above program draws a single x at coords 0,0, then exits when a key is pressed. Notice that the foreground attribute is TB_DEFAULT and the background is 20. When I run this program, I see an orange x on a blue background. This seems to suggest that my default foreground color is orange.
However, when I set both the foreground and background to TB_DEFAULT, I see a white x on a blackish (unaltered from my normal terminal) background.
The above program draws a single
x
at coords0,0
, then exits when a key is pressed. Notice that the foreground attribute isTB_DEFAULT
and the background is20
. When I run this program, I see an orange x on a blue background. This seems to suggest that my default foreground color is orange.However, when I set both the foreground and background to
TB_DEFAULT
, I see a white x on a blackish (unaltered from my normal terminal) background.Why is this? Thanks :)