Bug#845395: cowdancer: don't swamp log when non-color term is used [with patch]
Norbert Preining
preining at logic.at
Wed Nov 23 00:31:48 UTC 2016
Package: cowdancer
Version: 0.81
Severity: normal
Dear all,
with color support added to cow*, now, if the current terminal entry
doesn't include a "colors" capability (e.g., the terminal "dumb"),
the program now gives a useless error message.
Below is the trivial diff which simply omits the error. It does not change
the behavior since if colors < 0, it is certainly also < 8.
--- cowdancer-0.81/ORIG/log.c 2016-11-23 00:34:55.503364524 +0100
+++ cowdancer-0.81/log.c 2016-11-23 00:35:01.790398440 +0100
@@ -70,5 +70,2 @@
- if (colors < 0)
- fprintf(stderr, "E: Error getting colors termcap: %d\n", colors);
-
return colors >= 8;
Thanks
Norbert
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (200, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-rc6 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages cowdancer depends on:
ii libc6 2.24-5
ii libncurses5 6.0+20160917-1
ii libtinfo5 6.0+20160917-1
cowdancer recommends no packages.
cowdancer suggests no packages.
-- no debconf information
More information about the Pbuilder-maint
mailing list