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
Ansi colour codes emitted on Powershell #15
Comments
@Michael-F-Bryan: Thx for the report
|
Yeah, I used to use it all the time at work although I've had my |
@colin-kiegel, what are your thoughts on swapping to the term crate for rendering colours instead of |
@Michael-F-Bryan Sounds like a good idea to me. Feel free to send me a PR, if you want to. ;-) |
this should be fixed by #28 now. |
We use I think the most likely workaround would be to detect and disable ANSI codes if they're not supported, as here. Alternatively, we could use a different library that can already cope with the environment you describe (and use whatever colour codes are required). I don't personally have an interest in fixing this or the environment to test it in, but happy to review any fixes from affected users. |
I've just reinstalled my work computer and it looks like
pretty_assertions
is now printing ansi codes instead of using the native windows mechanism for terminal colours. It's probably something to do with my environment, but do you have any idea why this may be happening even though cargo is able to print colours just fine?Here's a screenshot to show the output.
cc: #1
The text was updated successfully, but these errors were encountered: