commit | 192361cb4dd6fa522a6871c6cbb11151bbc8e1b1 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Jan 24 17:05:38 2023 -0700 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Jan 24 17:05:38 2023 -0700 |
tree | 019740f4ab60853e68d9930af9e6d0d2eec5d910 | |
parent | 817ec182eb8bcd78de06947602e189aa09308660 [diff] |
[hb-info] Show color swatch only if printing to terminal
diff --git a/util/hb-info.cc b/util/hb-info.cc index 59b5376..75f1fcc 100644 --- a/util/hb-info.cc +++ b/util/hb-info.cc
@@ -1324,7 +1324,7 @@ } #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,