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

Enable proper text coloring on Windows #271

Merged

Conversation

vpetrigo
Copy link
Contributor

@vpetrigo vpetrigo commented Mar 5, 2019

That PR addresses #267. According to rust-lang/cargo#4722 the misbehaving of color output with rustc and cargo has been fixed. Also atty is able to properly determine whether we use TTY on Windows or not. That small fix correctly enables color ouput while using Windows cmd and powershell utilities and also does not break down compatibility with Unix terminal programs.

I'd like to ask @alekseysidorov to validate whether that fix properly works on his machine. My test configuration was the following:

  • Windows 10 (build 1809 - 10.0.17763)
  • rust 1.32.0
  • rust 1.33.0

@alekseysidorov
Copy link

2019-03-06_14-25-01
Yes with this PR colored output works fine.

@bheisler
Copy link
Owner

bheisler commented Mar 9, 2019

Then this looks good to me. Thanks for the pull request!

@bheisler bheisler merged commit 37e9324 into bheisler:master Mar 9, 2019
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