Skip to content

Colors in console output not working in conhost #2803

@retep998

Description

@retep998

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 a Box<Write + Send>, so the API for Shell::create and every user of it would have to be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions