ku1ik / rainbow

Ruby gem for colorizing printed text on ANSI terminals
MIT License
813 stars 68 forks source link

Disable if STDERR is not a TTY #16

Closed jonas054 closed 10 years ago

jonas054 commented 10 years ago

In this error report the user piped stderr to a file and got unwanted escape codes in the file. I was thinking that Rainbow could disable itself if STDOUT or STDERR is a TTY. Now it only checks STDOUT.

ku1ik commented 10 years ago

Yeah, good catch. I'll fix that and release a new version.

jonas054 commented 10 years ago

@sickill Ping! :smile:

ku1ik commented 10 years ago

@jonas054 hey there. I have just pushed rainbow 1.99 to rubygems which has this fixed. Lemme if it works fine now for you.

jonas054 commented 10 years ago

Yes, that solves the problem. Thanks!