[prev in list] [next in list] [prev in thread] [next in thread]
List: ncurses-bug
Subject: Wrong background color after leaving mutt
From: Dick Streefland <dick () streefland ! net>
Date: 2016-05-05 9:46:59
Message-ID: 20160505094657.GA4817 () streefland ! net
[Download RAW message or body]
After upgrading Ubuntu from 15.10 to 16.04, I noticed a problem with
the background color. When I start and leave "mutt" in a terminal
window with a white background, the line with the next prompt will
have a black background. The next "less" command will also have a
black background. The problem goes away after a "reset" command.
This behavior seems to be caused by the following change and reverting
it fixes the problem for me:
20151017
+ remove an early-return from _nc_do_color, which can interfere with
data needed by bkgd when ncurses is configured with extended colors
(patch by Denis Tikhomirov).
--- ncurses-6.0-20151010+/ncurses/base/lib_color.c 2015-08-22 22:38:58.000000000 +0000
+++ ncurses-6.0-20151017/ncurses/base/lib_color.c 2015-10-17 20:39:18.000000000 +0000
@@ -45,7 +45,7 @@
#define CUR SP_TERMTYPE
#endif
-MODULE_ID("$Id: lib_color.c,v 1.111 2015/08/22 22:38:58 tom Exp $")
+MODULE_ID("$Id: lib_color.c,v 1.112 2015/10/17 20:39:18 Denis.Tikhomirov Exp $")
#ifdef USE_TERM_DRIVER
#define CanChange InfoOf(SP_PARM).canchange
@@ -858,8 +858,6 @@
}
} else {
reset_color_pair(NCURSES_SP_ARG);
- if (old_pair < 0)
- return;
}
#if NCURSES_EXT_FUNCS
--
Dick
_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-ncurses
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic