From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: console color Date: Thu, 10 Jul 1997 20:48:19 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 19 Message-ID: <33C54A93.6DD8@cs.com> References: <33c52f66 DOT 5876442 AT news DOT demon DOT co DOT uk> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp107.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 >>> | ---------------------------------------------------------------------