[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
color support for TERM=cygwin
From: |
Eric Blake |
Subject: |
color support for TERM=cygwin |
Date: |
Fri, 25 Mar 2005 18:21:58 +0000 |
The cygwin terminal supports color, so it would be nice to have this patch.
Also, I think src/dcgen should not strip comments from src/dircolors.hin, so
that a user typing `dircolors -p' gets the comments as well as the default
settings. For example, `info coreutils dircolors' refers to running `dircolors
-p', which means there is currently nothing in the coreutils documentation
(either dircolors --help, or the info pages) that describes the legality of
"LINK target" in the file passed to dircolors. Even worse, dircolors.hin
doesn't mention some of the less-used features, such as LEFT and RIGHT,
necessary for setting colors on terminals that don't understand the default
ANSI sequences used in ls, but which have working alternate sequences. As far
as I can tell, there is no documentation mentioning LS_COLORS or its format,
other than that dircolors is used to generate it; ls(1) doesn't even mention
that it reads the variable when --color is used. Therefore, this patch is only
a start; we still need more documentation. Also, for those who prefer British
spellings, should we be looking at supporting colour synonyms (dircolours,
LS_COLOURS, ls --colour, etc.)?
Adding cygwin was proposed once before, but with no response (and with a patch
to the wrong file):
http://lists.gnu.org/archive/html/bug-coreutils/2003-02/msg00019.html
2005-03-25 Eric Blake <address@hidden> (tiny change)
* src/dcgen: Don't strip comments from `dircolors -p'.
* src/ls.c (usage): Document usage of LS_COLORS.
* src/dircolors.hin: Add cygwin as a color terminal.
coreutils.patch
Description: Binary data
- color support for TERM=cygwin,
Eric Blake <=