summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorEd Avis <ed@membled.com>2008-02-12 12:22:35 +0100
committerJim Meyering <meyering@redhat.com>2008-02-17 11:16:08 +0100
commit483297d5ddaea930d61da1da9c3f052cbd3c3810 (patch)
tree62a52587507c3d1b17ef8348d6698fec10f681d2 /NEWS
parent7dc26da47c9e01dc89fef9837219cdca1e9bbce6 (diff)
downloadcoreutils-483297d5ddaea930d61da1da9c3f052cbd3c3810.tar.xz
ls --color no longer outputs unnecessary escape sequences
In --color mode, plain files do not get any color, not even white. When no highlighting is required, ls outputs no escape sequence at all. * src/ls.c (print_with_color): (used_color): New global. (indicator_no) [C_RESET]: New enum value. (indicator_name) ["rs"]: Corresponding new string. (color_indicator): Make the 'normal' and 'file' markers be NULL. Use "rs" (C_RESET) to reset to ordinary colors. (process_signals): Restore default colors only if necessary. (main): Don't call prep_non_filename_text here. (print_name_with_quoting): Call it here, instead. (prep_non_filename_text): Use C_RESET, not C_NORM. (print_color_indicator): Return bool, not void. Print nothing, when possible. (put_indicator): Call prep_non_filename_text the first time. * tests/misc/ls-misc: Test for above. * tests/ls/color-dtype-dir: Adapt: no escapes around regular file name. * TODO: Remove item. * NEWS: Mention this.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index af27aab1d..34fda4e0f 100644
--- a/NEWS
+++ b/NEWS
@@ -6,13 +6,16 @@ GNU coreutils NEWS -*- outline -*-
configure --enable-no-install-program=groups now works.
-
ls no longer segfaults on files in /proc when linked with an older version
of libselinux. E.g., ls -l /proc/sys would dereference a NULL pointer.
"rmdir --ignore-fail-on-non-empty" detects and ignores the failure
in more cases when a directory is empty.
+** Improvements
+
+ ls --color no longer outputs unnecessary escape sequences
+
** Consistency
mkdir and split now write --verbose output to stdout, not stderr.