clicolors-control icon indicating copy to clipboard operation
clicolors-control copied to clipboard

colors are not shown if output is piped to `less -R` (unix)

Open mattsawyer77 opened this issue 4 years ago • 0 comments

I wonder if color support detection can be improved? Perhaps there would be a more robust method than using libc::isatty (which, if I'm reading it right, would be https://github.com/mitsuhiko/clicolors-control/blob/master/src/unix.rs#L5)? Being a rust novice, I don't have any constructive criticism, unfortunately.

mattsawyer77 avatar Feb 05 '20 22:02 mattsawyer77