[hb-info] Show color swatch only if printing to terminal
This commit is contained in:
parent
817ec182eb
commit
192361cb4d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue