Mail Archives: djgpp/1997/07/12/01:38:21
You wrote:
>can anyone tell me how i can change the color of the dos screen from
>black to another color ?
Do you mean inside your DJGPP program, or just in general? In the first case:
textbackground(GREEN); /* or another color constant */
should work. If you mean in general, this is really the wrong place to ask,
but with an ANSI terminal driver (ie ANSI.SYS), you can send the following
string to the CON driver (perhaps with DOS TYPE):
ESC[XXm
where ESC is the literal ESC character, ASCII 27, and XX is the 0-based
color number + 40.
HTH
Nate Eldredge
eldredge AT ap DOT net
- Raw text -