From: Bruno Haible Date: Sat, 23 Dec 2006 15:48:36 +0000 (+0000) Subject: Improve output on Cygwin. X-Git-Tag: v0.17~537 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68fe2be4bf9f0d6fc27befb772f2aad2cbfcf777;p=thirdparty%2Fgettext.git Improve output on Cygwin. --- diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index 6337305b2..231a8d688 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -1,3 +1,8 @@ +2006-12-23 Bruno Haible + + * lib/term-ostream.oo.c (term_ostream_create): Fix up the + no_color_video value for cygwin. + 2006-12-21 Bruno Haible * modules/gettext-tools-misc (Makefile.am): Move modifications of diff --git a/gnulib-local/lib/term-ostream.oo.c b/gnulib-local/lib/term-ostream.oo.c index d731ed0aa..1a839d79b 100644 --- a/gnulib-local/lib/term-ostream.oo.c +++ b/gnulib-local/lib/term-ostream.oo.c @@ -1780,6 +1780,11 @@ term_ostream_create (int fd, const char *filename) } # endif + /* The termcap entry for cygwin is broken: It has no "ncv" value, + but bold and underline are actually rendered through colors. */ + if (strcmp (term, "cygwin") == 0) + stream->no_color_video |= 2 | 32; + /* Done with tgetstr. Detect possible buffer overflow. */ #undef TEBP if (memcmp (termentrybuf.canary, "CnRz", 4) != 0)