You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using cargo in the Windows console, it doesn't use colors. Even --color=always doesn't work. The output from rustc is colored though, just not cargo itself.
It explicitly uses TermInfo and ignores Windows entirely. That function can't even be easily fixed due to it taking a Box<Write + Send>, so the API for Shell::create and every user of it would have to be changed.
The text was updated successfully, but these errors were encountered:
Add color support for Windows consoles
Unfortunately, the `term` API makes this PR rather inelegant, any hints/pointers to make it better are highly appreciated!
Fixes#2803
When using cargo in the Windows console, it doesn't use colors. Even
--color=always
doesn't work. The output from rustc is colored though, just not cargo itself.https://github.com/rust-lang/cargo/blob/master/src/cargo/core/shell.rs#L150-L172
It explicitly uses
TermInfo
and ignores Windows entirely. That function can't even be easily fixed due to it taking aBox<Write + Send>
, so the API forShell::create
and every user of it would have to be changed.The text was updated successfully, but these errors were encountered: