pijul_org / pijul

#161 Pijul displays color even when not going to a TTY:

Opened by porglezomp, on September 3, 2017
Closed
porglezomp commented on September 3, 2017

When running pijul diff | less:

ESC[1mESC[4mIn file "/Users/caleb/Development/rust/oss/pijul/pijul/COPYING"

ESC(BESC[mESC[32m+ ESC(BESC[mexample change
ESC[32m+ ESC(BESC[m

(END)

Ideally we'd use atty just like Clap does in order to determine whether we should be printing colors.

porglezomp commented on September 3, 2017

Do we also want to support --color with auto, always, and never, where auto is the default and checks if it's attached to a tty?

pmeunier commented on September 3, 2017

That would indeed be great. Do you want to do it?

porglezomp commented on September 3, 2017

Yes, I'll take this.

lthms commented on September 18, 2017

I believe @pmeunier has done the job, right?