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.
Hello
Thank you for directing me to those options.
Setting _XOPEN_SOURCE to 500 or higher seems to restore the expected
functionality of attrset in ncurses for colour. _XOPEN_SOURCE is a
feature test macro, so it just determines that some functionality from
X/Open is used (X/OPEN 5 for _XOPEN_SOU
Am Montag, dem 28.03.2022 um 15:00 +0300 schrieb Roman Riabenko:
> gcc test.c -lncurses
This is not a sufficient invocation to get ncurses working correctly.
$ ncursesw6-config --cflags
-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -
I/gnu/store/9rrnm5hdjw7cy96a2a9rfgh6y08wsbmf-ncurses-
6.2.20210619/inclu
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 -lncur