summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/smartcolsP.h
diff options
context:
space:
mode:
authorKarel Zak2017-07-31 11:45:23 +0200
committerKarel Zak2017-07-31 11:45:23 +0200
commit28a3cc83c56eca679302d8d51a5056b836e3c86e (patch)
treec3dd7e88405c2fd080c9ddd4bd078bd4ff39e81a /libsmartcols/src/smartcolsP.h
parentagetty: fix --login-pause logic (diff)
downloadkernel-qcow2-util-linux-28a3cc83c56eca679302d8d51a5056b836e3c86e.tar.gz
kernel-qcow2-util-linux-28a3cc83c56eca679302d8d51a5056b836e3c86e.tar.xz
kernel-qcow2-util-linux-28a3cc83c56eca679302d8d51a5056b836e3c86e.zip
libsmartcols: add scols_table_enable_noencoding()
Now the library encode all output. It seems too strict and difficult to use the library for some use-cases -- for example if you want to use the library for already colorized output (by esc.sequences). Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r--libsmartcols/src/smartcolsP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h
index 65009779a..b3b54cddd 100644
--- a/libsmartcols/src/smartcolsP.h
+++ b/libsmartcols/src/smartcolsP.h
@@ -177,6 +177,7 @@ struct libscols_table {
header_printed :1, /* header already printed */
priv_symbols :1, /* default private symbols */
no_headings :1, /* don't print header */
+ no_encode :1, /* don't care about control and non-printable chars */
no_linesep :1, /* don't print line separator */
no_wrap :1; /* never wrap lines */
};