diff options
author | Jim Meyering <jim@meyering.net> | 1996-12-29 03:47:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-12-29 03:47:34 +0000 |
commit | 5ae342e1a9b8b62b2ce835170ad99afd0d3bae9e (patch) | |
tree | 9cb7b11b17c53aac9beab71d6d1d30ef0974646b /old | |
parent | 6c635d1f277cd3a7180391e54100d4dfe1fb0a81 (diff) | |
download | coreutils-5ae342e1a9b8b62b2ce835170ad99afd0d3bae9e.tar.xz |
Two problems fixed by these changes from Joakim Rosqvist.
Quoting Joakim:
1) The "total" number and the size of the first file as
output from 'ls --color -s' did not get colorized according
to the "no"-argument in LS_COLORS. Fixed by adding a function
prep_non_filename_text which prints the C_LEFT C_NORM C_RIGHT
strings (or C_END). It is called from main before any text is
output, and from print_name_with_quoting after having output a
colorized filename.
2) If the "no"-argument of LS_COLORS is set, the terminal will be
set to print in that color after ls exits. The man-pages suggests
setting "no" and "fi" to the terminals default colors to avoid
the problem, but that would mean I can't use anything but the
default color for regular files and non-filename text. Fixed by
outputting C_LEFT immediately followed by C_RIGHT right before
exit, which restores the default color.
Diffstat (limited to 'old')
0 files changed, 0 insertions, 0 deletions