From: Andrew Cottrell Newsgroups: comp.os.msdos.djgpp Subject: Re: Screen colors under Win2K Date: Wed, 19 Mar 2003 18:42:37 +1100 Organization: ECLiPSE Lines: 30 Message-ID: References: NNTP-Posting-Host: p1040-apx1.syd.ihug.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: lust.ihug.co.nz 1048059763 26040 203.173.150.24 (19 Mar 2003 07:42:43 GMT) X-Complaints-To: abuse AT ihug DOT co DOT nz NNTP-Posting-Date: Wed, 19 Mar 2003 07:42:43 +0000 (UTC) X-Newsreader: Forte Agent 1.92/32.572 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >I am wondering if there is a way to change the default screen colors for >DJGPP programs under Windows 2000. I am running in the standard cmd.exe >console window. On W2K and XP there is still an ansi.sys that you can use, but it requires you to use command.com and it is tricky to setup. I looked it up on the MS site, takes about 30 minutes to find the right doc. > >On Win95 I used ansi.sys and set my prompt to change the colors and normal >DJGPP programs, like djecho, followed suit. Under Win2K I change the color >attributes of the window using the properties dialog box to display in black >on white, but normal stdio writes come out in white on black. It is a bit >distracting when compiler messages and grep searches come out with their >colors reversed from my "normal". You need to load ansi.sys (see above) or as you indicate below change the code. >Clearly I can fix this by running in bash, but other users run some of my >programs and I would prefer their output go be in the right color. > >Examining a couple of examples that use colors, less and ls, was no help. >Both seem to do lots of extra things to get control of the screen colors. Going forward it will only get worse as MS cmd.exe prompt seems to be the most used prompt. I just checked Grep 2.5.1 wip built with 2.04 and found that I have broken the color support in it. The color support is contained in one file. I have put this on my list to fix. Andrew