freebsd-nq/bin/ls
Kyle Evans e10ba80063 ls(1): Add --color=when
--color may be set to one of: 'auto', 'always', and 'never'.

'auto' is the default behavior- output colors only if -G or COLORTERM are
set, and only if stdout is a tty.

'always' is a new behavior- output colors always. termcap(5) will be
consulted unless TERM is unset or not a recognized terminal, in which case
ls(1) will fall back to explicitly outputting ANSI escape sequences.

'never' to turn off any environment variable and -G usage.

Reviewed by:	cem, 0mp (both modulo last-minute manpage changes
Differential Revision:	https://reviews.freebsd.org/D16741
2018-08-17 04:15:51 +00:00
..
tests Fix ls_tests:o_flag with ZFS TMPDIR 2016-12-15 16:13:52 +00:00
cmp.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
extern.h ls(1): Add --color=when 2018-08-17 04:15:51 +00:00
ls.1 ls(1): Add --color=when 2018-08-17 04:15:51 +00:00
ls.c ls(1): Add --color=when 2018-08-17 04:15:51 +00:00
ls.h Convert ls(1) to not use libxo(3) 2018-01-17 22:47:34 +00:00
Makefile Convert ls(1) to not use libxo(3) 2018-01-17 22:47:34 +00:00
Makefile.depend Convert ls(1) to not use libxo(3) 2018-01-17 22:47:34 +00:00
print.c ls(1): Add --color=when 2018-08-17 04:15:51 +00:00
util.c ls(1): Add --color=when 2018-08-17 04:15:51 +00:00