[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,