summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/table.c
diff options
context:
space:
mode:
authorKarel Zak2016-08-31 12:42:38 +0200
committerKarel Zak2016-08-31 12:42:38 +0200
commita593128fd0c3d6faefe05a4162e9379c024c1321 (patch)
treed8a808f11a2151b86e3dcecf2a112f6e0e375654 /libsmartcols/src/table.c
parentlibsmartcols: fix scols_table_enable_colors() usage in samples (diff)
downloadkernel-qcow2-util-linux-a593128fd0c3d6faefe05a4162e9379c024c1321.tar.gz
kernel-qcow2-util-linux-a593128fd0c3d6faefe05a4162e9379c024c1321.tar.xz
kernel-qcow2-util-linux-a593128fd0c3d6faefe05a4162e9379c024c1321.zip
libsmartcols: fix title output on non-tty
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/table.c')
-rw-r--r--libsmartcols/src/table.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsmartcols/src/table.c b/libsmartcols/src/table.c
index 0c8198213..00188fb69 100644
--- a/libsmartcols/src/table.c
+++ b/libsmartcols/src/table.c
@@ -116,6 +116,10 @@ int scols_table_set_name(struct libscols_table *tb, const char *str)
* scols_table_get_title:
* @tb: a pointer to a struct libscols_table instance
*
+ * The returned pointer is possible to modify by cell functions. Note that
+ * title output alignment on non-tty is hardcoded to 80 output chars. For the
+ * regular terminal it's based on terminal width.
+ *
* Returns: Title of the table, or %NULL in case of blank title.
*
* Since: 2.28