diff options
author | Karel Zak | 2017-06-12 11:38:38 +0200 |
---|---|---|
committer | Karel Zak | 2017-06-12 11:38:38 +0200 |
commit | f46a8d7e6636b7cc1e56bd0010c3950e2a11cbd2 (patch) | |
tree | a76ed8ae42b214c6477e30b82a7fa43ca46f1720 /libsmartcols | |
parent | docs: update TODO, remove auto,noauto (diff) | |
download | kernel-qcow2-util-linux-f46a8d7e6636b7cc1e56bd0010c3950e2a11cbd2.tar.gz kernel-qcow2-util-linux-f46a8d7e6636b7cc1e56bd0010c3950e2a11cbd2.tar.xz kernel-qcow2-util-linux-f46a8d7e6636b7cc1e56bd0010c3950e2a11cbd2.zip |
lib/ttyutils: return terminal lines too
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols')
-rw-r--r-- | libsmartcols/src/table.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsmartcols/src/table.c b/libsmartcols/src/table.c index a64a6b2a2..149648f05 100644 --- a/libsmartcols/src/table.c +++ b/libsmartcols/src/table.c @@ -490,6 +490,10 @@ FILE *scols_table_get_stream(const struct libscols_table *tb) * The @reduce must be smaller than terminal width, otherwise it's silently * ignored. The reduction is not applied when STDOUT_FILENO is not terminal. * + * Note that after output initialization (scols_table_print_* calls) the width + * will be reduced, this behavior affects subsequenced scols_table_get_termwidth() + * calls. + * * Returns: 0, a negative value in case of an error. */ int scols_table_reduce_termwidth(struct libscols_table *tb, size_t reduce) |