Mail Archives: djgpp/2003/03/19/02:46:07
>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
- Raw text -