]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: add title to the test application
authorKarel Zak <kzak@redhat.com>
Fri, 22 Jan 2016 12:50:02 +0000 (13:50 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 22 Jan 2016 12:50:02 +0000 (13:50 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/test.c

index 5b2cc64336856eaddeecc772bd6b47b04e04746e..f520d4c1c5706e29743872332168c4b37d60ca86 100644 (file)
@@ -212,6 +212,8 @@ int main(int argc, char *argv[])
        }
 
        scols_table_enable_colors(tb, 1);
+       scols_table_set_title(tb, "This is table title", SCOLS_TITLE_CENTER, "red");
+
        setup_columns(tb, notree);
 
        while (optind < argc)