-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Windows / Colors are displayed as codes #4722
Comments
Thanks for the report! @BurntSushi you wouldn't happen to know what's going on here would you? We're using a pretty thin wrapper over the termcolor crate |
Do you have the |
Ahhh. It is |
Ok that'd explain it! Do you know how come that variable is set? Should Cargo not be interpreting that environment variable? |
If That said, if you are writing to the windows console and you successfully set |
@alexcrichton Probably when working with hyper.js. @retep998 so, termcolor needs to get fixed? |
@AndyBitz hm I'm a little confused then as to what's going on, it sounds like you're using a terminal emulator which claims to support ansi escape codes but it doesn't? |
I'm also confused. If you're setting |
@BurntSushi If you're writing to the windows console, then you must disregard what
|
My own experience: my |
As there hasn't been any activity here in over 6 months I've marked this as stale and if no further activity happens for 7 days I will close it. I'm a bot so this may be in error! If this issue should remain open, could someone (the author, a team member, or any interested party) please comment to that effect? The team would be especially grateful if such a comment included details such as:
Thank you for contributing! (The cargo team is currently evaluating the use of Stale bot, and using #6035 as the tracking issue to gather feedback.) If you're reading this comment from the distant future, fear not if this was closed automatically. If you believe it's still an issue please leave a comment and a team member can reopen this issue. Opening a new issue is also acceptable! |
I couldn't reproduce this with the latest version of cargo and rustc. |
I'm on Windows 10 Build 16299.19
I've recently updated from cargo 0.20.0 to 0.22.0 and now I have the following issue.
Colors (especially green) are not displayed correctly under normal circumstances.
When I redirect
stdout
to a file everything seems to almost work fine.I've tried this with cargo 0.21.1 and had the same bug.
A VM with the same Windows Version did't have this problem.
An other device with an older windows version did't have this bug until I updated to the current version.
Could the recent cmd.exe change be the problem?
The nightly version has the same bug. Only 0.20.0 seems to work normal.
This is the same for cmd, powershell and hyper (the terminal emulator I use).
I've posted this on StackOverflow before.
The text was updated successfully, but these errors were encountered: