[hb-info] Respect HB_CHAFA=0
This commit is contained in:
parent
87df84c386
commit
167443e9fc
|
@ -1323,7 +1323,9 @@ struct info_t :
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_CHAFA
|
#ifdef HAVE_CHAFA
|
||||||
if (verbose && isatty (fileno (stdout)))
|
char *chafa_env = getenv ("HB_CHAFA");
|
||||||
|
bool use_chafa = !chafa_env || atoi (chafa_env);
|
||||||
|
if (verbose && use_chafa && 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