Bug 77831

Summary: colors not handled right in screen because of missing file
Product: [Retired] Red Hat Linux Reporter: Nathan G. Grennan <redhat-bugzilla>
Component: fileutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-03 03:37:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nathan G. Grennan 2002-11-14 07:19:17 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20021017

Description of problem:
/etc/profile.d/colorls.sh checks $TERM and looks for /etc/DIR_COLOR.$TERM  This
makes colors work right in terminal programs that have their $TERM set to xterm.
I today switched to a setup where my terminals are automatically run with screen
on top of zsh so that I can use "ctrl-a d" to push something into the background
and not have to worry about it going away if X crashes. This is especially nice
with downloads/uploads. So my $TERM is constantly set to screen instead of
xterm. This results in sub-optimal ls colors. As a workaround I have used cd
/etc ; ln -s DIR_COLORS.xterm DIR_COLORS.screen

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. screen
2. ls

	

Actual Results:  Colors work, but aren't correctly set, so things like archive
files aren't red.

Expected Results:  Proper colors for all file types.

Additional info:

Comment 1 Tim Waugh 2002-11-14 09:17:24 UTC
Perhaps a better solution is to add a line to /etc/DIR_COLORS, rather than make
a new file.