Skip to content

[discussion] Should NO_COLOR fully cancel out the effect of FORCE_COLOR? #8

@webknjaz

Description

@webknjaz

It looks like some projects (namely, Rich) start printing out things like bold/italic with FORCE_COLOR set (additionally to producing colors), but don't stop doing that when FORCE_COLOR=1 is also present. So it results in programs producing non-colored output with ANSI sequences in stdout. When that is piped into other programs, the supposedly machine-readable output is suddenly broken and stuff explodes.

So I'd like to ask if NO_COLOR should fully suppress the effect of FORCE_COLOR or not?

Cross-posted @ https://github.com/jcs/no_color/issues/267 (that issue tracker got disabled)

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