diff options
author | Karel Zak | 2015-02-27 13:57:34 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-27 13:57:34 +0100 |
commit | 4310faf9507b863adf0d735564f28db5c68ca600 (patch) | |
tree | e60620d3a69b9566e9e214cc316ccf2525bc116d /sys-utils/Makemodule.am | |
parent | Merge branch 'fixes' of https://github.com/rudimeier/util-linux (diff) | |
download | kernel-qcow2-util-linux-4310faf9507b863adf0d735564f28db5c68ca600.tar.gz kernel-qcow2-util-linux-4310faf9507b863adf0d735564f28db5c68ca600.tar.xz kernel-qcow2-util-linux-4310faf9507b863adf0d735564f28db5c68ca600.zip |
lib/colors: use libtinfo to check terminal capability
The current implementation assumes that all terminals supports colors
and users are forcet to use terminal-colors.d/ to disable colors for
some terminals.
This patch checks for maximal supported colors for the current
terminal and colors are automatically disabled for terminals like
vt100.
The patch moves lib/colors.c from libcommon.la to libtcolors.la to
avoid collisions with another utils.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/Makemodule.am')
-rw-r--r-- | sys-utils/Makemodule.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index 23b8f5c0c..8e6108d07 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -73,7 +73,8 @@ if BUILD_DMESG bin_PROGRAMS += dmesg dist_man_MANS += sys-utils/dmesg.1 dmesg_SOURCES = sys-utils/dmesg.c lib/monotonic.c -dmesg_LDADD = $(LDADD) libcommon.la $(CLOCKGETTIME_LIBS) +dmesg_LDADD = $(LDADD) libcommon.la libtcolors.la $(CLOCKGETTIME_LIBS) +dmesg_CFLAGS = $(AM_CFLAGS) endif if BUILD_CTRLALTDEL |