Skip to content
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

Only use red color for errors if terminal supports ANSI #58

Closed
wants to merge 3 commits into from

Conversation

AliSoftware
Copy link
Contributor

There were some places in the code where ANSI codes where printed to stderr without testing if the terminal supported it.
This made error messages in the Xcode console for example to print the ANSI escapes — as the Xcode console doesn't support ANSI color codes

This change allows to print a string in a given color on stderr or stdout only if the terminal supports it.

@kylef kylef closed this in d08cd61 Nov 25, 2017
@kylef
Copy link
Owner

kylef commented Nov 25, 2017

Tried to fix merge conflict with GitHub UI and then GitHub got into some odd unmergable state.

Merged changes in manually via d08cd61.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants