emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#54607: closed (ncurses attrset colour pair ignored in favour of bkgd


From: GNU bug Tracking System
Subject: bug#54607: closed (ncurses attrset colour pair ignored in favour of bkgd)
Date: Thu, 07 Apr 2022 12:53:02 +0000

Your message dated Thu, 07 Apr 2022 14:52:31 +0200
with message-id <a2859263b68659284f78d87252383547c5a3ff6c.camel@ist.tugraz.at>
and subject line Re: ncurses attrset colour pair ignored in favour of bkgd
has caused the debbugs.gnu.org bug report #54607,
regarding ncurses attrset colour pair ignored in favour of bkgd
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
54607: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54607
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: ncurses attrset colour pair ignored in favour of bkgd Date: Mon, 28 Mar 2022 15:00:52 +0300 User-agent: Evolution 3.42.1
Hello

With ncurses, the "attrset" colour pair is ignored when the background
colour pair is set with "bkgd".

I ran into this issue when compiling robotfindskitten, but it is not
specific to that program and can be reproduced with the attached small
test code. When compiled with "gcc test.c -lncurses", "./a.out" is
expected to display the sample text in yellow (the brownish curses
equivalent of yellow), which is set with "attrset". It does so when
compiled as usual without guix. If compiled in guix, the sample text is
blue instead, which is set with "bkgd" for background and for some
reason is not overridden by "attrset". If the "bkgd" line is removed,
"attrset" works as usual.

This affects software compiled in a guix shell (guix environment), or
on a guix system, or with "guix build" and "guix install".

It does not seem to be caused by the terminal properties or environment
variables because it can be reproduced on the same Debian machine after
compiling (1) with guix (in a guix environment) and (2) without guix.

I tried compiling with guix having ncurses 6.2.20210619 (current guix)
and 6.2.20200212 (from the older guix image from the website and in
Debian bullseye). I tried compiling without guix on Debian with
development packages for ncurses 6.2+20201114-2 (bullseye) and 6.3-2
(bookworm) and on Fedora with its development package for ncurses
6.2.20210508.

I was pointed in a forum to "render_char" function in lib_addch.c, [1]
which defines how colour is applied. But there seem to be no
modifications to that in guix as far as I can see.

[1]:
https://github.com/ThomasDickey/ncurses-snapshots/blob/6b3112c16ee04882a512f9aa967e34dba5e362e1/ncurses/base/lib_addch.c#L57

Roman

Attachment: test.c
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: ncurses attrset colour pair ignored in favour of bkgd Date: Thu, 07 Apr 2022 14:52:31 +0200 User-agent: Evolution 3.42.1
Am Donnerstag, dem 07.04.2022 um 15:50 +0300 schrieb Roman Riabenko:
> I believe that the above is enough to close this issue.
Consider it closed.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]