Problem changing display color in 'ls'

2008-02-14 Thread John Salmon
The real problem is my 72 year old eyes. I have a lot of trouble reading 
some of the pre-selected list colors in 'ls'.

I'm running Etch, Bash and Gnome on a Dell OptiPlex. I have a small '.bmp' 
file that I use as a place holder in image file groups. 'ls' shows this
file name in green with a white background. Doing 'echo $LS_COLORS' shows 
that '.bmp' files should be shown in bold magenta with a white background 
(bm on white).

Noting that this could be a problem, I followed the book and ran 'dircolors 
-p  colors'. I edited the 'colors' file to make '.bmp' files show as bold 
black on cyan and then ran 'dircolors colors'. 'echo $LS_COLORS' showed no 
change in the '.bmp' entry. 'ls -l' also showed no change.

Next, I ran 'dircolors  colors'. This put the actual commands in 'colors'. 
I made the changes to the '.bmp' entry, made the file executable and ran 
it. Still no change.

I then got into the 'colors' file and cut the first (long) line. I pasted 
this line into me command prompt and exrcuted it. 
I also ran 'export LS_COLORS'. This DID change 'LS_COLORS' to the value 
I wanted, but running 'ls -l' showed still bm on white.

From earlier experience, I know that logging in to Gnome doesn't give you a 
true lokin session in Bash. To check this out, I ran 'bash -l' for a true 
login session. Repeating all of the above gave identical results.

Again, I respectfully ask for help.

-- 
John Salmon
[EMAIL PROTECTED]
    Posted via Pronews.com - Premium Corporate Usenet News Provider 
http://www.pronews.com offers corporate packages that have access to 100,000+ 
newsgroups


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problem changing display color in 'ls'

2008-02-14 Thread Vincent Lefevre
On 2008-02-14 10:11:54 -0600, John Salmon wrote:
[...]
 Noting that this could be a problem, I followed the book and ran 'dircolors 
 -p  colors'. I edited the 'colors' file to make '.bmp' files show as bold 
 black on cyan and then ran 'dircolors colors'. 'echo $LS_COLORS' showed no 
 change in the '.bmp' entry. 'ls -l' also showed no change.

Yes, dircolors doesn't change anything, and cannot change the parent
environment.

 Next, I ran 'dircolors  colors'. This put the actual commands in 'colors'. 
 I made the changes to the '.bmp' entry, made the file executable and ran 
 it. Still no change.

Same problem. If you run the file, it will only change its environment,
not the environment of your shell (which is the parent environment).
You need to *source* the file so that it is interpreted in the
environment of your shell.

 I then got into the 'colors' file and cut the first (long) line. I pasted 
 this line into me command prompt and exrcuted it. 
 I also ran 'export LS_COLORS'. This DID change 'LS_COLORS' to the value 
 I wanted, but running 'ls -l' showed still bm on white.

I have no explanations for that. Does something like

  LS_COLORS='*.bmp=01;35' ls file.bmp

(with the values you want) work?

-- 
Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/
100% accessible validated (X)HTML - Blog: http://www.vinc17.org/blog/
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problem changing display color in 'ls'

2008-02-14 Thread Jochen Schulz
John Salmon:

 The real problem is my 72 year old eyes. I have a lot of trouble reading 
 some of the pre-selected list colors in 'ls'.

If you are using some terminal emulator in X, the easiest solution is to
change the colors for this terminal. gnome-terminal, xfce4-terminal
(which is what I use) and probably Konsole make this very easy.

J.
-- 
I spend money without thinking on products and clothes that I believe
will enhance my social standing.
[Agree]   [Disagree]
 http://www.slowlydownward.com/NODATA/data_enter2.html


signature.asc
Description: Digital signature


Re: Problem changing display color in 'ls'

2008-02-14 Thread Raj Kiran Grandhi

John Salmon wrote:
The real problem is my 72 year old eyes. I have a lot of trouble reading 
some of the pre-selected list colors in 'ls'.


I'm running Etch, Bash and Gnome on a Dell OptiPlex. I have a small '.bmp' 
file that I use as a place holder in image file groups. 'ls' shows this
file name in green with a white background. Doing 'echo $LS_COLORS' shows 
that '.bmp' files should be shown in bold magenta with a white background 
(bm on white).


Please check that the file in question does not have the execute bit 
set. It may be showing up in green because ls thinks it is an executable 
file.


--
Raj Kiran Grandhi


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]