delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/11/19:10:40

From: "A. Sinan Unur" <asu1 AT c-o-r-n-e-l-l DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbie comments and a question
Date: 11 Nov 2002 23:05:02 GMT
Organization: Cornell University
Lines: 36
Sender: asu1 AT cornell DOT invalid (on pool-141-149-208-190.syr.east.verizon.net)
Message-ID: <Xns92C3B7F5B7996asu1cornelledu@132.236.56.8>
References: <1037048280 DOT 41547 AT cswreg DOT cos DOT agilent DOT com>
NNTP-Posting-Host: pool-141-149-208-190.syr.east.verizon.net
X-Trace: news01.cit.cornell.edu 1037055902 19213 141.149.208.190 (11 Nov 2002 23:05:02 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 11 Nov 2002 23:05:02 GMT
User-Agent: Xnews/5.04.25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019