Mail Archives: djgpp/1997/07/11/01:10:41
stewilcox AT slicksoft DOT demon DOT co DOT uk wrote:
>
> can anyone tell me how i can change the color of the dos screen from
> black to another color ?
There are several ways. From DOS, you can load the ANSI.SYS driver and
use ANSI escape sequences to change the background color. In a C
program, you can print ANSI escape sequences for the same effect. You
can use the conio functions (textcolor, etc) to change the screen
colors. You can also poke them directly into text video memory (but see
chapter 18 of the FAQ before doing this).
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| God's final message to His Creation: | http://www.cs.com/fighteer |
| "We apologize for the inconvenience."| <<< This tagline under >>> |
| - Douglas Adams | <<< construction >>> |
---------------------------------------------------------------------
- Raw text -