-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print colored output only to a tty #1452
Conversation
76018ac
to
b8f9233
Compare
@dohse I can't imagine this works in a browser context. |
The idea is from the reporter base. Does |
b8f9233
to
d683ad2
Compare
I changed this PR to only overwrite base reporter defaults when a color option is specified |
@dohse, cool! Does checking for |
Yeah, it makes sense to set no option. |
Color output only if standard and error output are ttys.
d683ad2
to
3bc92de
Compare
Ok, changed it to only set |
@dohse, about reporters being used in the browser or not, I'm not sure right now. I've never used |
I doubt that reporters relying on the base reporter are running in the browser as they are already using |
Hmm, sorry, I was confused about what I was looking at. |
Print colored output only to a tty
@boneskull I originally implemented the tty check in Thanks for merging! |
Color output only if standard and error output are ttys.