ff icon indicating copy to clipboard operation
ff copied to clipboard

Add `--color=auto/always/never`

Open cblp opened this issue 6 years ago • 4 comments

As in git

Also, check terminal detection under docker.

always — colorize the output unconditionally never — do not colorize the output auto [default] — detect if we are running in a terminal (isatty?) and colorize only if in terminal

cblp avatar Mar 19 '19 05:03 cblp

What auto acts?

willbasky avatar Apr 26 '19 10:04 willbasky

added to the description

cblp avatar Apr 26 '19 11:04 cblp

auto [default] — detect if we are running in a terminal (isatty?) and colorize only if in terminal

Can ff be launched not in terminal?

willbasky avatar Apr 26 '19 14:04 willbasky

Yes, when launched from a script or a command, like ff | less, stdout is a pipe, not a terminal (teletype, tty).

cblp avatar Apr 26 '19 14:04 cblp