[hb-info] Show color swatch only if printing to terminal

This commit is contained in:
Behdad Esfahbod 2023-01-24 17:05:38 -07:00
parent 817ec182eb
commit 192361cb4d
1 changed files with 1 additions and 1 deletions

View File

@ -1324,7 +1324,7 @@ struct info_t :
} }
#ifdef HAVE_CHAFA #ifdef HAVE_CHAFA
if (verbose) if (verbose && isatty (fileno (stdout)))
{ {
GString *chafa_str = _palette_chafa_str (i); GString *chafa_str = _palette_chafa_str (i);
printf ("%u %s %-23s %*s\n", i, type, name, printf ("%u %s %-23s %*s\n", i, type, name,