summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/smartcolsP.h
diff options
context:
space:
mode:
authorKarel Zak2016-02-19 16:43:28 +0100
committerKarel Zak2016-02-19 16:43:28 +0100
commit2981e0fd0e238f120811e1955e4f1bfddf93a326 (patch)
tree2f5fd9ceb4121ea4e35f096bc4575c9fc5291ea8 /libsmartcols/src/smartcolsP.h
parentlibsmartcols: add scols_table_print_range() (diff)
downloadkernel-qcow2-util-linux-2981e0fd0e238f120811e1955e4f1bfddf93a326.tar.gz
kernel-qcow2-util-linux-2981e0fd0e238f120811e1955e4f1bfddf93a326.tar.xz
kernel-qcow2-util-linux-2981e0fd0e238f120811e1955e4f1bfddf93a326.zip
libsmartcols: support continuous printing
This patch allows to disable line-breaks. This feature is usable when you want to re-print the same line more than once -- move terminal cursor to the begin of the line and print again and again (aka progress bar). Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r--libsmartcols/src/smartcolsP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h
index 5add21849..377ab8045 100644
--- a/libsmartcols/src/smartcolsP.h
+++ b/libsmartcols/src/smartcolsP.h
@@ -156,7 +156,9 @@ struct libscols_table {
colors_wanted :1, /* enable colors */
is_term :1, /* isatty() */
maxout :1, /* maximalize output */
+ header_printed :1, /* header already printed */
no_headings :1, /* don't print header */
+ no_linesep :1, /* don't print line separator */
no_wrap :1; /* never wrap lines */
};