Closed smspillaz closed 9 years ago
This seems like good logic for when we're auto-detecting whether or not to use color. What about the case when the user specifies -t/--termcolor
to force colors on regardless of whether or not green is attached to a terminal?
Oh, wait. This doesn't disable colors. It disables the first line that gets rewritten once the test finishes. Sorry for being a bit slow on the uptake.
Included in 1.9.1 released just now.
If stdout is connected to a pipe or file, this will result in duplicate lines.
Check to make sure we're connected to a terminal first before printing \r and other "status" like lines.
Fixes #52