From 192361cb4dd6fa522a6871c6cbb11151bbc8e1b1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 24 Jan 2023 17:05:38 -0700 Subject: [PATCH] [hb-info] Show color swatch only if printing to terminal --- util/hb-info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/hb-info.cc b/util/hb-info.cc index 59b53761a..75f1fcc82 100644 --- a/util/hb-info.cc +++ b/util/hb-info.cc @@ -1324,7 +1324,7 @@ struct info_t : } #ifdef HAVE_CHAFA - if (verbose) + if (verbose && isatty (fileno (stdout))) { GString *chafa_str = _palette_chafa_str (i); printf ("%u %s %-23s %*s\n", i, type, name,