Skip to content

nix-expr-c does not respect NO_COLOR #14017

@tenginkai

Description

@tenginkai

Describe the bug

The Nix C library does not respect NO_COLOR. Eval error messages contain ANSI escape sequences.terminal control sequences. Eval error messages are barely readable.

Steps To Reproduce

Create an eval error with the C API.

Expected behavior

Produce evaluations errors as plain text only.

Metadata

nix-env (Nix) 2.28.4

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions