From 68fe2be4bf9f0d6fc27befb772f2aad2cbfcf777 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 23 Dec 2006 15:48:36 +0000 Subject: [PATCH] Improve output on Cygwin. --- gnulib-local/ChangeLog | 5 +++++ gnulib-local/lib/term-ostream.oo.c | 5 +++++ 2 files changed, 10 insertions(+) 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) -- 2.47.3