Click to See Complete Forum and Search --> : Bright background colours?


MartinB
12-11-2002, 02:34 PM
I've just learned how to implement colour into my console based C programs (and other things) using ANSI escape sequences, but I can't seem to find out any way to create bright background colours.

I know that it is possible to use bold (1) to make the foreground use the brighter palette, but I'm unable to figure out how to do the same for the background, and so I end up with only 8 background colours available instead of 16.

Does anyone know how to do this? When I was using Borland C, I had to somehow "sacrifice" the blink feature in order to allow for bright background colours. Is it a similar thing in GCC too? And is there a simple way to do it if so?

Thanks,
Martin