summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/smartcolsP.h
diff options
context:
space:
mode:
authorKarel Zak2017-06-13 11:11:17 +0200
committerKarel Zak2017-06-13 11:11:17 +0200
commit36e07cebf1323098b2854b3571563abda01f0323 (patch)
treecdb3d6ec25cc443031c660c7e8ddbadbe8cbf356 /libsmartcols/src/smartcolsP.h
parentlibsmartcols: add missing symbols (diff)
downloadkernel-qcow2-util-linux-36e07cebf1323098b2854b3571563abda01f0323.tar.gz
kernel-qcow2-util-linux-36e07cebf1323098b2854b3571563abda01f0323.tar.xz
kernel-qcow2-util-linux-36e07cebf1323098b2854b3571563abda01f0323.zip
libsmartcols: add header-repeat feature
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r--libsmartcols/src/smartcolsP.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h
index 1a749b247..65009779a 100644
--- a/libsmartcols/src/smartcolsP.h
+++ b/libsmartcols/src/smartcolsP.h
@@ -164,12 +164,16 @@ struct libscols_table {
int indent_last_sep;/* last printed has been line separator */
int format; /* SCOLS_FMT_* */
+ size_t termlines_used; /* printed line counter */
+ size_t header_next; /* where repeat header */
+
/* flags */
unsigned int ascii :1, /* don't use unicode */
colors_wanted :1, /* enable colors */
is_term :1, /* isatty() */
padding_debug :1, /* output visible padding chars */
maxout :1, /* maximize output */
+ header_repeat :1, /* print header after libscols_table->termheight */
header_printed :1, /* header already printed */
priv_symbols :1, /* default private symbols */
no_headings :1, /* don't print header */