From f46a8d7e6636b7cc1e56bd0010c3950e2a11cbd2 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 12 Jun 2017 11:38:38 +0200 Subject: lib/ttyutils: return terminal lines too Signed-off-by: Karel Zak --- libsmartcols/src/table.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libsmartcols') 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) -- cgit v1.2.3-55-g7522