[rspec-users] Color output in pagers

Paul Hinze paul.t.hinze at gmail.com
Wed Dec 2 15:38:13 EST 2009

P. A. <lists at ruby-forum.com> on 2009-12-02 at 10:13:
> $ cucumber #=> color output
> $ cucumber | less -R #=> monochrome

Ah now I see what you're saying.  We're getting burned by this line:

> Term::ANSIColor.coloring = false if !STDOUT.tty? and not ENV.has_key?("AUTOTEST")

So, we can either feature request an override variable for this line, or
perhaps there is a way to trick a program that STDOUT is actually a tty...?


More information about the rspec-users mailing list