summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/smartcolsP.h
diff options
context:
space:
mode:
authorKarel Zak2015-12-07 12:03:52 +0100
committerKarel Zak2015-12-07 12:03:52 +0100
commitdf73852b6ec0d22c947647c03f447ce2edc22904 (patch)
tree107eb89dc8f2b943b7a522abe64f651a75bf57c1 /libsmartcols/src/smartcolsP.h
parentRevert "cfdisk: make sure that output fits to terminal width" (diff)
downloadkernel-qcow2-util-linux-df73852b6ec0d22c947647c03f447ce2edc22904.tar.gz
kernel-qcow2-util-linux-df73852b6ec0d22c947647c03f447ce2edc22904.tar.xz
kernel-qcow2-util-linux-df73852b6ec0d22c947647c03f447ce2edc22904.zip
libsmartcols: add scols_table_enable_nowrap()
This allows to use libsmartcols in ncurses programs without any additional voodoo. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r--libsmartcols/src/smartcolsP.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h
index c4df79b53..8f371a7d5 100644
--- a/libsmartcols/src/smartcolsP.h
+++ b/libsmartcols/src/smartcolsP.h
@@ -89,6 +89,8 @@ struct libscols_column {
struct libscols_cell header;
struct list_head cl_columns;
+
+ unsigned int ignore : 1;
};
/*
@@ -147,7 +149,8 @@ struct libscols_table {
colors_wanted :1, /* enable colors */
is_term :1, /* isatty() */
maxout :1, /* maximalize output */
- no_headings :1; /* don't print header */
+ no_headings :1, /* don't print header */
+ no_wrap :1; /* never wrap lines */
};
#define IS_ITER_FORWARD(_i) ((_i)->direction == SCOLS_ITER_FORWARD)