Mail Archives: djgpp/2002/11/11/19:10:40
rrd AT ftc DOT agilent DOT com (Ray Depew) wrote in
news:1037048280 DOT 41547 AT cswreg DOT cos DOT agilent DOT com:
> Okay, one comment and two questions:
>
> Comment: I love DJGPP. People pay hundreds of dollars for commercial
> products that are this good and this completed.
>
> Question 1: This may be an "RTFM" question, but I read the info in
> "info" and I still don't quite understand how to get colors when I do
> "ls" or "dir". (I've got DJGPP on an NT box at work and a W2K box at
> home, but not on the W98 box yet.) My Unix box at work has a nice
> color "ls" and I'd love to have the same capability in Win/DOS.
you can use the environment variable INFO_COLORS.
for example:
info_colors=0x2c.0x34
will create a pretty ugly color scheme. in this expression, 0x2c sets the
colors for the main window, and 0x34 sets the colors for the status line.
in each case the upper 4 bits correspond to the foreground color, and the
lower 4 bits correspond to the background color. (using the standard dos
palette, i can never remember which values correspond to which color, you
might want to check conio.h for that. also, in WinXP, you can change the
color scheme of the DOS window).
as for ls, use ls --color, or define an alias to this.
Sinan.
--
A. Sinan Unur
asu1 AT c-o-r-n-e-l-l DOT edu
Remove dashes for address
Spam bait: mailto:uce AT ftc DOT gov
- Raw text -