Don't echo ANSI terminal escape codes if output device is not a TTY #253

Closed
kevinburke opened this Issue Aug 29, 2013 · 6 comments

2 participants

@kevinburke

If I run tests from Vim I get [32m1 spam in the vim buffer.

@tebriel

Have you tried running with --noColor ?

@kevinburke
@tebriel

Fair enough. Didn't realize there was process.stdout.isTTY. Will add to Jasmine2.0 branch.

@tebriel tebriel pushed a commit that referenced this issue Mar 6, 2014
Chris Moultrie Checking for TTY, disabling color if not
Resolves #253
45c85b4
@tebriel tebriel pushed a commit that closed this issue Mar 6, 2014
Chris Moultrie Disabling color in non-TTY
Resolves #253
4deb23c
@tebriel tebriel closed this in 4deb23c Mar 6, 2014
@tebriel

Also available in main, as 1.14.1

@kevinburke
@tebriel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment