🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.tech.userlevel
Article #68

Re: color curses leakage

#68
From: Brett Lymn
Date: Tue, 03 Nov 2026 04:43
42 lines
3296 bytes
On Sun, Nov 01, 2026 at 11:58:04AM -0500, Chuck Cranor wrote:
> hi-
> 
>     I'm seeing issues with pkgsrc mail/mutt under NetBSD 11
> displaying text with the wrong colors.  The terminal/xterm
> default colors are leaking through in places where they are
> not supposed to!   If I recompile mail/mutt to use ncurses,
> then it displays properly -- so the bugs are in NetBSD libcurses.
> 

Aha, I have had others complain about the same thing but hadn't figured
out what was going on.

>     Working with NetBSD libcurses from trunk, I've tracked the
> the issue down to two main issues:
> 
>  - the handling of "orig_pair" in color.c
>  - the handling of "exit_attribute_mode" in refresh.c
> 
> I have fixes for both that I'm hoping someone more familiar
> with NetBSD curses can double check so we can get this fixed.
> 

Your reasoning is sound and the diff looks correct with a quick reading.
I can have a closer look and do some testing in a couple of days.  If
all is well I will commit the changes and request some pull ups.

Thanks for digging in to this.

-- 
Brett Lymn
--
Sent from my NetBSD device.

"We are were wolves",
"You mean werewolves?",
"No we were wolves, now we are something else entirely",
"Oh"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <aulmbYw8iJSuE9yo@internode.on.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <audvnDORjfU9wTJd@ece.cmu.edu>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Brett Lymn <blymn@internode.on.net>
Newsgroups: muc.lists.netbsd.tech.userlevel
Subject: Re: color curses leakage
Date: Tue, 3 Nov 2026 15:13:25 +1030
Organization: Newsgate at muc.de e.V.
Sender: tech-userlevel-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <aulmbYw8iJSuE9yo@internode.on.net>
References: <audvnDORjfU9wTJd@ece.cmu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="29606"; mail-complaints-to="news-admin@muc.de"
Authentication-Results: mail.netbsd.org (amavisd-new);
	dkim=pass (2048-bit key) header.d=internode.on.net
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=internode.on.net; s=202309; h=Content-Type:MIME-Version:Message-ID:Subject:
	To:From:Date; bh=tSOCWtu0nDwSF20wzHKcxNB51wA3LHiJn3M9877ZZPk=; b=k1tgnA0foDpU
	RrTbl1tP5O8CUTkqlF6IxZj9UJStkSFhSyne0E7bwB+vnafEiBQmc2faMlsBBvjOoZo2+zr2qei+w
	Xc8Rzy7iJuwL2HjFr0fyN2F04+703cVOc9Ivgwwu3szH8QuIZ7sWgTfU/TU4t8KAVgWcMRQfFc4mB
	TVWyvEdolRQaBb+kd+J5FUWVaW9R1vFr1WlFf4B7H+I2sdYLFov0SzqGiZxwWtnC4OATK7QbkYMY3
	xV6PlMDr69/6R1DOUTB+hjwVXWtUyAgQ46XV5uHmdL+DFB9pb4UnhOhVaqqOgtBsXjSDvOYy5CgnZ
	K2gZ2rDOOKJzuvdvc6rhfA==;
Content-Disposition: inline
In-Reply-To: <audvnDORjfU9wTJd@ece.cmu.edu>
X-Atmail-Id: blymn@internode.on.net
Authentication-Results: cmr-kakadu01.au-east.atmailcloud.com; auth=pass smtp.auth=blymn@internode.on.net
X-atmailcloud-route: unknown
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes