From 4310faf9507b863adf0d735564f28db5c68ca600 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 27 Feb 2015 13:57:34 +0100 Subject: 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 --- text-utils/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text-utils/Makemodule.am') diff --git a/text-utils/Makemodule.am b/text-utils/Makemodule.am index bd3d53f82..94c8c7e05 100644 --- a/text-utils/Makemodule.am +++ b/text-utils/Makemodule.am @@ -34,7 +34,7 @@ hexdump_SOURCES = \ text-utils/hexdump.c \ text-utils/hexdump.h \ text-utils/hexdump-parse.c -hexdump_LDADD = $(LDADD) libcommon.la +hexdump_LDADD = $(LDADD) libcommon.la libtcolors.la endif if BUILD_REV -- cgit v1.2.3-55-g7522