This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: curses' window.chgat does not change color when specifying curses.A_COLOR
Type: Stage:
Components: Library (Lib) Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Jeffrey.Kintscher, maarten
Priority: normal Keywords:

Created on 2020-08-20 00:39 by maarten, last changed 2022-04-11 14:59 by admin.

Files
File name Uploaded Description Edit
chgat.py maarten, 2020-08-20 00:39 Python script using chgat that does not show any text
chgat.c maarten, 2020-08-20 00:40 C source using chgat that works correctly
Messages (2)
msg375681 - (view) Author: Maarten (maarten) * Date: 2020-08-20 00:39
Or'ing curses.A_COLOR in the `attr` argument of curses.window.chgat ends of with the line not showing.

Actual Problem:
The text is invisible/hidden/not shown.
Using only the attribute curses.A_BLINK is fine.

Expected:
The color of the line is changed +the text starts blinking.


I have attached a small python reproducer and a small c source that shows the correct behavior.
The c example should be compiled as `gcc chgat.c -lncurses -o chgat`.

This is using ncurses 6.1

The c code is from https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/attrib.html,
and the python script is a translation of it.
msg375682 - (view) Author: Maarten (maarten) * Date: 2020-08-20 00:40
Equivalent c script of chgat.py

Compile with:
gcc chgat.c -lncurses -o chgat
History
Date User Action Args
2022-04-11 14:59:34adminsetgithub: 85761
2020-08-20 01:24:12Jeffrey.Kintschersetnosy: + Jeffrey.Kintscher
2020-08-20 00:40:32maartensetfiles: + chgat.c

messages: + msg375682
2020-08-20 00:39:50maartencreate