mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Moved to atty
This commit is contained in:
+1
-1
@@ -622,7 +622,7 @@ fn display_file_name(
|
||||
let mut width = UnicodeWidthStr::width(&*name);
|
||||
|
||||
let color = match options.opt_str("color") {
|
||||
None => stdout_isatty(),
|
||||
None => atty::is(atty::Stream::Stdout),
|
||||
Some(val) => match val.as_ref() {
|
||||
"always" | "yes" | "force" => true,
|
||||
"auto" | "tty" | "if-tty" => atty::is(atty::Stream::Stdout),
|
||||
|
||||
Reference in New Issue
Block a user