-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check stdout is a tty before using terminal features
The implementation only checked if stderr was a tty. This lead to escape codes in output when piped from stdout. For example, this had ANSI codes show up in `less`: $ rustup component list | less while this did not: $ rustup component list 2>&1 | less even though no output went to stderr.
- Loading branch information
1 parent
d4d4922
commit 6c2203d
Showing
1 changed file
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters