NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/55220: Possible color problem in curses and/or py-curses



The following reply was made to PR lib/55220; it has been noted by GNATS.

From: Brett Lymn <blymn%internode.on.net@localhost>
To: Thomas Klausner <wiz%NetBSD.org@localhost>
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: lib/55220: Possible color problem in curses and/or py-curses
Date: Mon, 6 Dec 2021 07:40:58 +1030

 On Sat, Dec 04, 2021 at 09:24:42PM +0100, Thomas Klausner wrote:
 > 
 > I tried fileobj with this, and I still see some weirdness (but perhaps
 > that is what you meant with the colour pair 0 question?):
 > 
 
 Yes, that is what I was talking about.  I am sure it works fine in ncurses I suspect because
 the ncurses chgat() won't update the colour if the pair number is 0.  I am sure our colour
 handling is correct because the output matches screenshots out on the internet, chgat is
 only called when the cursor moves.  I will have a look at the chgat code now the attributes
 are coming through.
 
 
 > As for the patch itself: The color part should be fine to upstream,
 > since ncurses chgat(3) also documents PAIR_NUMBER. However, I can't
 > find __ATTRIBUTES in the ncurses man pages nor headers. Is there a
 > different way to get that?
 > 
 
 Try A_ATTRIBUTES instead, that is defined in both NetBSD curses and ncurses.
 
 -- 
 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"
 


Home | Main Index | Thread Index | Old Index