diff options
Diffstat (limited to 'libsmartcols/samples/wrap.c')
-rw-r--r-- | libsmartcols/samples/wrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsmartcols/samples/wrap.c b/libsmartcols/samples/wrap.c index 1da4c011b..795bef714 100644 --- a/libsmartcols/samples/wrap.c +++ b/libsmartcols/samples/wrap.c @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) if (!tb) err(EXIT_FAILURE, "failed to create output table"); - scols_table_enable_colors(tb, 1); + scols_table_enable_colors(tb, isatty(STDOUT_FILENO)); setup_columns(tb); ln = add_line(tb, NULL, "A"); |