We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_terminal
1 parent 15528b2 commit 9116495Copy full SHA for 9116495
compiler/rustc_driver_impl/src/lib.rs
@@ -620,8 +620,7 @@ fn show_md_content_with_pager(content: &str, color: ColorConfig) {
620
// to standard output
621
if fallback_to_println {
622
let fmt_success = match color {
623
- ColorConfig::Auto => io::stdout().is_terminal() && bufwtr.print(&mdbuf).is_ok(),
624
- ColorConfig::Always => bufwtr.print(&mdbuf).is_ok(),
+ ColorConfig::Auto | ColorConfig::Always => bufwtr.print(&mdbuf).is_ok(),
625
ColorConfig::Never => false,
626
};
627
0 commit comments