diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-10-13 12:40:52 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-10-16 12:23:30 +0100 |
commit | c249a5afc4f480e10346198422a3161931afd574 (patch) | |
tree | fd799462c026bdba9c8c577ceba8799335054457 /src/dircolors.hin | |
parent | 3a68c3e99065fd17436260889fe821caa19a855e (diff) | |
download | coreutils-c249a5afc4f480e10346198422a3161931afd574.tar.xz |
dircolors: support globbing of TERM entries
* src/dircolors.c (dc_parse_stream): Support globbing of
TERM entries, to allow entries like "TERM *256color*" for example.
* src/dircolors.hin: Reduce the internal list with globbing.
* tests/misc/dircolors.pl: New test cases.
* NEWS: Mention the improvement.
Diffstat (limited to 'src/dircolors.hin')
-rw-r--r-- | src/dircolors.hin | 42 |
1 files changed, 7 insertions, 35 deletions
diff --git a/src/dircolors.hin b/src/dircolors.hin index 5c894474c..e20fad536 100644 --- a/src/dircolors.hin +++ b/src/dircolors.hin @@ -8,20 +8,12 @@ # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the # slackware version of dircolors) are recognized but ignored. -# Below, there should be one TERM entry for each termtype that is colorizable +# Below are TERM entries, which can be a glob patterns, to match +# against the TERM environment variable to determine if it is colorizable. TERM Eterm TERM ansi TERM color-xterm -TERM con132x25 -TERM con132x30 -TERM con132x43 -TERM con132x60 -TERM con80x25 -TERM con80x28 -TERM con80x30 -TERM con80x43 -TERM con80x50 -TERM con80x60 +TERM con[0-9]*x[0-9]* TERM cons25 TERM console TERM cygwin @@ -40,34 +32,14 @@ TERM mach-gnu-color TERM mlterm TERM putty TERM putty-256color -TERM rxvt -TERM rxvt-256color -TERM rxvt-cygwin -TERM rxvt-cygwin-native -TERM rxvt-unicode -TERM rxvt-unicode-256color -TERM rxvt-unicode256 -TERM screen -TERM screen-256color -TERM screen-256color-bce -TERM screen-bce -TERM screen-w -TERM screen.Eterm -TERM screen.rxvt -TERM screen.linux +TERM rxvt* +TERM screen* TERM st TERM st-256color TERM terminator -TERM tmux -TERM tmux-256color +TERM tmux* TERM vt100 -TERM xterm -TERM xterm-16color -TERM xterm-256color -TERM xterm-88color -TERM xterm-color -TERM xterm-debian -TERM xterm-termite +TERM xterm* # Below are the color init strings for the basic file types. A color init # string consists of one or more of the following numeric codes: |