Jim Meyering 5ae342e1a9 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.
1996-12-29 03:47:34 +00:00
.
1996-12-23 05:14:55 +00:00
1996-12-27 03:36:53 +00:00
.
1996-12-29 01:48:20 +00:00
.
1996-12-28 16:04:01 +00:00
1996-09-22 14:30:37 +00:00
.
1996-12-28 06:06:51 +00:00
1996-11-27 05:13:21 +00:00
.
1996-03-24 18:49:38 +00:00
.
1996-04-24 02:34:42 +00:00
.
1996-12-19 05:14:59 +00:00
S
Description
GNU Coreutils
GPL-3.0
48 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 55.1%
Shell 29.1%
Perl 11.6%
Makefile 2.2%
M4 0.9%
Other 1.1%