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

Possibly enable color output on Windows (#1494) #1820

Merged
merged 2 commits into from
Feb 17, 2019

Conversation

adoxa
Copy link
Contributor

@adoxa adoxa commented Feb 12, 2019

Windows 10 supports color output, but it must be explicitly enabled;
ANSICON provides support for other versions. Enable color if either of
those are available. Resolves #1494.

Windows 10 supports color output, but it must be explicitly enabled;
ANSICON provides support for other versions.  Enable color if either of
those are available.  Resolves jqlang#1494.
@coveralls
Copy link

coveralls commented Feb 12, 2019

Coverage Status

Coverage increased (+0.01%) to 84.499% when pulling a9ebce8 on adoxa:win-color into 9fa2e51 on stedolan:master.

Windows regards the `NUL` device as tty, which causes `WriteFile` to
fail (the bytes written pointer cannot be `NULL` in this case).  Tweak
the color test to ensure tty is accurate.
@nicowilliams nicowilliams merged commit 87594f8 into jqlang:master Feb 17, 2019
@nicowilliams
Copy link
Contributor

Thanks!

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.

3 participants