From ebe734c8380feb930a15fa7b98ae617f02dbf956 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 18 Dec 2006 12:05:22 +0000 Subject: [PATCH] Fix tgetstr argument. --- gnulib-local/ChangeLog | 5 +++++ gnulib-local/lib/term-ostream.oo.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index 7456380d2..0228f8ab8 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -1,3 +1,8 @@ +2006-12-16 Bruno Haible + + * lib/term-ostream.oo.c (term_ostream_create): Fix tgetstr argument + for stream->no_color_video. + 2006-12-16 Bruno Haible * lib/term-ostream.oo.c (term_ostream_create): Don't ignore tgetent's diff --git a/gnulib-local/lib/term-ostream.oo.c b/gnulib-local/lib/term-ostream.oo.c index ed524db62..855d18433 100644 --- a/gnulib-local/lib/term-ostream.oo.c +++ b/gnulib-local/lib/term-ostream.oo.c @@ -1716,7 +1716,7 @@ term_ostream_create (int fd, const char *filename) /* Retrieve particular values depending on the terminal type. */ stream->max_colors = tgetnum ("Co"); - stream->no_color_video = tgetnum ("nc"); + stream->no_color_video = tgetnum ("NC"); stream->set_a_foreground = xstrdup0 (tgetstr ("AF", TEBP)); stream->set_foreground = xstrdup0 (tgetstr ("Sf", TEBP)); stream->set_a_background = xstrdup0 (tgetstr ("AB", TEBP)); -- 2.47.3