Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59937 - DIR_COLORS and screen
Summary: DIR_COLORS and screen
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-10 02:22 UTC by Bjarke Istrup Pedersen (RETIRED)
Modified: 2004-08-18 18:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-08-10 02:22:09 UTC
/etc/DIR_COLORS does not contain TERM screen.linux
This causes screens not to get colors.

Reproducible: Always
Steps to Reproduce:
1. emerge the newest bash version
2. emerge the newest screen version
3. start screen

Actual Results:  
The terminal inside screen has no colors

Expected Results:  
The terminal should have colors like the rest of the system.

It can easily be fixed by adding this line to /etc/DIR_COLORS:

TERM screen.linux
Comment 1 Joshua Kinard gentoo-dev 2004-08-10 11:53:29 UTC
I ran a check on this since I use PuTTY (and thus, my TERM gets set to putty), and from what I can tell, the 'dircolors' used /etc/bash/bashrc to check the valid terms, does not read /etc/DIR_COLORS, but rather has its own builtin database.  If you want to modify that, you have to craft a patch to coreutils to mod it, which I've done for "TERM putty", but haven't yet put the patch up anywhere.  

Comment 2 SpanKY gentoo-dev 2004-08-10 12:48:27 UTC
the plan is to update bashrc to use dircolors so we dont have to maintain two sep lists for the same thing
Comment 3 Sven Wegener gentoo-dev 2004-08-10 17:14:14 UTC
I already talked with agriffis about this issue. We'll change the dircolors
call to just grep /etc/DIR_COLORS for the current TERM. This allows users to
add additional terms.
Comment 4 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-08-18 16:50:10 UTC
Seems to have been fixed, closing bug.
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-08-18 18:32:04 UTC
Ok, I fixed it after you closed this.  *shrug*

See app-shells/bash/files/bashrc