NetBSD Problem Report #60430

From www@netbsd.org  Thu Jul  9 07:45:58 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.netbsd.org", Issuer "YR2" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id EF9291A923A
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  9 Jul 2026 07:45:57 +0000 (UTC)
Message-Id: <20260709074557.362D91A923F@mollari.NetBSD.org>
Date: Thu,  9 Jul 2026 07:45:57 +0000 (UTC)
From: rvp@SDF.ORG
Reply-To: rvp@SDF.ORG
To: gnats-bugs@NetBSD.org
Subject: latest curses fails to restore original background
X-Send-Pr-Version: www-1.0
X-From4GNATS: "rvp@SDF.ORG via gnats" <gnats-admin@NetBSD.org>

>Number:         60430
>Category:       lib
>Synopsis:       latest curses fails to restore original background
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    blymn@netbsd.org
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 09 07:50:00 +0000 2026
>Last-Modified:  Tue Jul 21 08:15:00 +0000 2026
>Originator:     RVP
>Release:        -HEAD with latest curses
>Organization:
>Environment:
NetBSD/amd64 11.99.6
>Description:
Curses from a few days ago doesn't restore the original background if
a program changes it.
>How-To-Repeat:
1. Run sysinst(8) on the console (TERM=wsvt25).

2. Exit immediately.

Background is now blue.
>Fix:
Workaround:

tput rs1 (or, run reset(1)).

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: lib-bug-people->blymn@netbsd.org
Responsible-Changed-By: blymn@NetBSD.org
Responsible-Changed-When: Sat, 11 Jul 2026 07:22:44 +0000
Responsible-Changed-Why:
I will claim this.


From: "Brett Lymn" <blymn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60430 CVS commit: src/lib/libcurses
Date: Sun, 19 Jul 2026 06:39:04 +0000

 Module Name:	src
 Committed By:	blymn
 Date:		Sun Jul 19 06:39:04 UTC 2026

 Modified Files:
 	src/lib/libcurses: color.c refresh.c

 Log Message:
 Fixes for PR lib/60430 and lib/60431

 * Don't leave screen in colour mode after makech, fixes 60430
 * Set the background colour to the blank attribute before erase to properly
   get the background erase colour
 * Disable dirtying lines when the colour pair changes, this causes
   the screen to get blanked if apps use windows and leave stdscr blank.
   (fixes 60431)


 To generate a diff of this commit:
 cvs rdiff -u -r1.48 -r1.49 src/lib/libcurses/color.c
 cvs rdiff -u -r1.134 -r1.135 src/lib/libcurses/refresh.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Stephen Borrill" <sborrill@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60430 CVS commit: [netbsd-11] src
Date: Tue, 21 Jul 2026 08:05:08 +0000

 Module Name:	src
 Committed By:	sborrill
 Date:		Tue Jul 21 08:05:08 UTC 2026

 Modified Files:
 	src/lib/libcurses [netbsd-11]: color.c refresh.c
 	src/tests/lib/libcurses/check_files [netbsd-11]: chgat3.chk
 	    mutt_test3.chk mutt_test4.chk mutt_test5.chk mutt_test6.chk
 	    mutt_test8.chk mutt_test9.chk mvchgat2.chk mvwchgat2.chk
 	    wchgat2.chk wcolor_set.chk window_hierarchy.chk

 Log Message:
 Pull up the following revisions(s) (requested by blymn in ticket #392):
 	lib/libcurses/color.c:	revision 1.49
 	lib/libcurses/refresh.c:	revision 1.135
 	tests/lib/libcurses/check_files/chgat3.chk:	revision 1.3
 	tests/lib/libcurses/check_files/mvchgat2.chk:	revision 1.3
 	tests/lib/libcurses/check_files/mutt_test3.chk:	revision 1.4
 	tests/lib/libcurses/check_files/mutt_test8.chk:	revision 1.4
 	tests/lib/libcurses/check_files/mutt_test9.chk:	revision 1.4
 	tests/lib/libcurses/check_files/mvwchgat2.chk:	revision 1.4
 	tests/lib/libcurses/check_files/wchgat2.chk:	revision 1.4
 	tests/lib/libcurses/check_files/mutt_test4.chk:	revision 1.5
 	tests/lib/libcurses/check_files/mutt_test5.chk:	revision 1.5
 	tests/lib/libcurses/check_files/mutt_test6.chk:	revision 1.5
 	tests/lib/libcurses/check_files/wcolor_set.chk:	revision 1.5
 	tests/lib/libcurses/check_files/window_hierarchy.chk:	revision 1.2

 Fixes for PR lib/60430 and lib/60431
 * Don't leave screen in colour mode after makech, fixes 60430
 * Set the background colour to the blank attribute before erase to properly
   get the background erase colour
 * Disable dirtying lines when the colour pair changes, this causes
   the screen to get blanked if apps use windows and leave stdscr blank.
   (fixes 60431)
 Updates to check files due to output changes from bug fixes.


 To generate a diff of this commit:
 cvs rdiff -u -r1.48 -r1.48.2.1 src/lib/libcurses/color.c
 cvs rdiff -u -r1.129.2.3 -r1.129.2.4 src/lib/libcurses/refresh.c
 cvs rdiff -u -r1.1.58.1 -r1.1.58.2 \
     src/tests/lib/libcurses/check_files/chgat3.chk
 cvs rdiff -u -r1.2.6.1 -r1.2.6.2 \
     src/tests/lib/libcurses/check_files/mutt_test3.chk \
     src/tests/lib/libcurses/check_files/mutt_test8.chk \
     src/tests/lib/libcurses/check_files/mutt_test9.chk \
     src/tests/lib/libcurses/check_files/mvwchgat2.chk \
     src/tests/lib/libcurses/check_files/wchgat2.chk
 cvs rdiff -u -r1.3.6.1 -r1.3.6.2 \
     src/tests/lib/libcurses/check_files/mutt_test4.chk \
     src/tests/lib/libcurses/check_files/mutt_test5.chk \
     src/tests/lib/libcurses/check_files/mutt_test6.chk \
     src/tests/lib/libcurses/check_files/wcolor_set.chk
 cvs rdiff -u -r1.1.16.1 -r1.1.16.2 \
     src/tests/lib/libcurses/check_files/mvchgat2.chk
 cvs rdiff -u -r1.1 -r1.1.10.1 \
     src/tests/lib/libcurses/check_files/window_hierarchy.chk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Stephen Borrill" <sborrill@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60430 CVS commit: [netbsd-10] src
Date: Tue, 21 Jul 2026 08:13:51 +0000

 Module Name:	src
 Committed By:	sborrill
 Date:		Tue Jul 21 08:13:51 UTC 2026

 Modified Files:
 	src/lib/libcurses [netbsd-10]: color.c refresh.c
 	src/tests/lib/libcurses/check_files [netbsd-10]: chgat3.chk
 	    mutt_test3.chk mutt_test4.chk mutt_test5.chk mutt_test6.chk
 	    mutt_test8.chk mutt_test9.chk mvchgat2.chk mvwchgat2.chk
 	    wchgat2.chk wcolor_set.chk window_hierarchy.chk

 Log Message:
 Pull up the following revisions(s) (requested by blymn in ticket #1314):
 	lib/libcurses/color.c:	revision 1.49
 	lib/libcurses/refresh.c:	revision 1.135
 	tests/lib/libcurses/check_files/chgat3.chk:	revision 1.3
 	tests/lib/libcurses/check_files/mvchgat2.chk:	revision 1.3
 	tests/lib/libcurses/check_files/mutt_test3.chk:	revision 1.4
 	tests/lib/libcurses/check_files/mutt_test8.chk:	revision 1.4
 	tests/lib/libcurses/check_files/mutt_test9.chk:	revision 1.4
 	tests/lib/libcurses/check_files/mvwchgat2.chk:	revision 1.4
 	tests/lib/libcurses/check_files/wchgat2.chk:	revision 1.4
 	tests/lib/libcurses/check_files/mutt_test4.chk:	revision 1.5
 	tests/lib/libcurses/check_files/mutt_test5.chk:	revision 1.5
 	tests/lib/libcurses/check_files/mutt_test6.chk:	revision 1.5
 	tests/lib/libcurses/check_files/wcolor_set.chk:	revision 1.5
 	tests/lib/libcurses/check_files/window_hierarchy.chk:	revision 1.2

 Fixes for PR lib/60430 and lib/60431
 * Don't leave screen in colour mode after makech, fixes 60430
 * Set the background colour to the blank attribute before erase to properly
   get the background erase colour
 * Disable dirtying lines when the colour pair changes, this causes
   the screen to get blanked if apps use windows and leave stdscr blank.
   (fixes 60431)
 Updates to check files due to output changes from bug fixes.


 To generate a diff of this commit:
 cvs rdiff -u -r1.47 -r1.47.2.1 src/lib/libcurses/color.c
 cvs rdiff -u -r1.126.2.3 -r1.126.2.4 src/lib/libcurses/refresh.c
 cvs rdiff -u -r1.1.54.1 -r1.1.54.2 \
     src/tests/lib/libcurses/check_files/chgat3.chk
 cvs rdiff -u -r1.2.2.1 -r1.2.2.2 \
     src/tests/lib/libcurses/check_files/mutt_test3.chk \
     src/tests/lib/libcurses/check_files/mutt_test8.chk \
     src/tests/lib/libcurses/check_files/mutt_test9.chk \
     src/tests/lib/libcurses/check_files/mvwchgat2.chk \
     src/tests/lib/libcurses/check_files/wchgat2.chk
 cvs rdiff -u -r1.3.2.1 -r1.3.2.2 \
     src/tests/lib/libcurses/check_files/mutt_test4.chk \
     src/tests/lib/libcurses/check_files/mutt_test5.chk \
     src/tests/lib/libcurses/check_files/mutt_test6.chk \
     src/tests/lib/libcurses/check_files/wcolor_set.chk
 cvs rdiff -u -r1.1.12.1 -r1.1.12.2 \
     src/tests/lib/libcurses/check_files/mvchgat2.chk
 cvs rdiff -u -r1.1 -r1.1.6.1 \
     src/tests/lib/libcurses/check_files/window_hierarchy.chk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.