-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-console-outputArea: Terminal output, colors, progress bar, etc.Area: Terminal output, colors, progress bar, etc.C-bugCategory: bugCategory: bug
Description
Problem
When I set TERM
to xterm-mono
, I expect programmes to honor that. Cargo shows colours despite me telling it that my terminal is monochrome. Yes, I know about --color=never
, that's not the point. The point is that when a terminal doesn't support colours, programmes shouldn't attempt to print them.
Steps
$ export TERM="xterm-mono"
$ cargo $ANY_COMMAND
Possible Solution(s)
Default to --color=never
on non-coloured terminals.
Notes
Output of cargo version
:
$ cargo --version
cargo 1.39.0 (1c6ec66d5 2019-09-30)
$ uname -a
Linux ainar-IdeaPad-U330p 4.15.0-71-generic #80-Ubuntu SMP Thu Nov 14 02:19:47 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
A-console-outputArea: Terminal output, colors, progress bar, etc.Area: Terminal output, colors, progress bar, etc.C-bugCategory: bugCategory: bug