Assorted rust tools emit terminal codes to non-ttys #42707
Labels
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Some rust tools, inclusing rustc and cargo, emit terminal codes when the terminal is not an interactive user session. For example, rustc may be run from within a vi or emacs terminal, or cargo may be piped to
less
.In general, command line tools should disable terminal codes when !tty(), so that the output can be better processed.
The text was updated successfully, but these errors were encountered: