]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Improve output on Cygwin.
authorBruno Haible <bruno@clisp.org>
Sat, 23 Dec 2006 15:48:36 +0000 (15:48 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:34 +0000 (12:14 +0200)
gnulib-local/ChangeLog
gnulib-local/lib/term-ostream.oo.c

index 6337305b2dc523cfa295a8a90f7cf6700e3c8aa5..231a8d6887a5cf9c11b8757bf4c392f50b318b66 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/term-ostream.oo.c (term_ostream_create): Fix up the
+       no_color_video value for cygwin.
+
 2006-12-21  Bruno Haible  <bruno@clisp.org>
 
        * modules/gettext-tools-misc (Makefile.am): Move modifications of
index d731ed0aa9777106d1f50325b57e0f91196bd5e3..1a839d79b197130c706e6de648b1bd4ad2953861 100644 (file)
@@ -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)