Cargo display color codes on terminals (TERM
) without color support
#11211
Labels
A-console-output
Area: Terminal output, colors, progress bar, etc.
C-bug
Category: bug
S-blocked-external
Status: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix
Problem
Some terminals lack ability to display colors. If
TERM
is set to the terminal type without color support, cargo should not put random (other terminal codes) on the screen.Steps
TERM=t10 cargo build
Expected result: no color codes.
Actual result: color console codes in output.
Possible Solution(s)
Unknown terminal types should switch cargo into 'no colors' mode.
Notes
Version
The text was updated successfully, but these errors were encountered: