Skip to content

cargo web uses color even when not supported #247

Description

@jgarvin

Color should only be used when the output is a tty and when the terminal supports color. rustc/cargo normally understand this, but when invoked through cargo web build I get a lot of this:

�[0m�[0m�[1m�[32m Compiling�[0m webidl v0.8.0

This is annoying when you are redirecting stdout/stderr to a log file for example.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions