summaryrefslogtreecommitdiffstats
path: root/src/subcommands/list_syntax_themes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/subcommands/list_syntax_themes.rs')
-rw-r--r--src/subcommands/list_syntax_themes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subcommands/list_syntax_themes.rs b/src/subcommands/list_syntax_themes.rs
index 621932e7..087e8858 100644
--- a/src/subcommands/list_syntax_themes.rs
+++ b/src/subcommands/list_syntax_themes.rs
@@ -1,4 +1,4 @@
-use std::io::{self, Write};
+use std::io::{self, IsTerminal, Write};
use itertools::Itertools;
@@ -8,7 +8,7 @@ use crate::{options::theme::is_light_syntax_theme, utils};
pub fn list_syntax_themes() -> std::io::Result<()> {
let stdout = io::stdout();
let mut stdout = stdout.lock();
- if atty::is(atty::Stream::Stdout) {
+ if stdout.is_terminal() {
_list_syntax_themes_for_humans(&mut stdout)
} else {
_list_syntax_themes_for_machines(&mut stdout)