Skip to content

--color never not supported for error output #353

@andreastt

Description

@andreastt

My shell does not support colours and consequently I set the environmental variable TERM=dumb to instruct programs never to colourise output.

However, even when I pass --color never to rg, the error output includes colour escape codes as can be seen below:

% rg --color never -asd
�[1;31merror:�[0m Found argument '�[33m-d�[0m' which wasn't expected, or isn't valid in this context

USAGE:
    
    rg [OPTIONS] <pattern> [<path> ...]
    rg [OPTIONS] [-e PATTERN | -f FILE ]... [<path> ...]
    rg [OPTIONS] --files [<path> ...]
    rg [OPTIONS] --type-list

For more information try �[32m--help�[0m

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug.help wantedOthers are encouraged to work on this issue.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions