On Tue, Oct 13, 2015 at 12:48:12PM +0100, Pádraig Brady wrote: > On 13/10/15 04:11, Josh Triplett wrote: > > Package: coreutils > > Version: 8.23-4 > > Severity: normal > > > > josh@jet:~$ TERM=screen.xterm-256color dircolors > > LS_COLORS=''; > > export LS_COLORS > > > screen in current unstable seems to set TERM to screen.xterm-256color if > > running in a terminal with TERM=xterm-256color. (With TERM=xterm, > > screen uses TERM=screen, which dircolors supports.) > > It seems screen(1) has multiplied out the various 256 color variants recently: > http://invisible-island.net/ncurses/terminfo.ti.html#tic-screen-256color > > I wonder should we add globbing support to TERM entries in dircolors? > I.E. add support for a general entry like: > > TERM *256color* > > That would cater for all existing TERMs in Fedora's /etc/DIR_COLORS.256color > for example, and new entries following this common pattern. > > Attached is a patch to do that.
Seems like a reasonable short-term measure, until dircolors can learn to parse actual terminal definitions to see if they support color (at which point it can stop maintaining its own list). - Josh Triplett
