Message349673
| Author |
vstinner |
| Recipients |
mgedmin, vstinner |
| Date |
2019-08-14.10:40:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1565779224.62.0.64657216927.issue37738@roundup.psfhosted.org> |
| In-reply-to |
|
| Content |
On my Fedora 30 with libncursesw, A_COLOR = 0xff00.
After my change, _curses uses:
static inline short
attr_to_color_pair(int attr)
{
return (short)((attr & A_COLOR) >> 8);
}
...
setcchar(&wcval, wstr, attr, attr_to_color_pair(attr), NULL);
...
If someone gets troubles with attr passed "directly" as the 3rd argument of setcchar(), we can try to pass (attr & ~A_COLOR) instead. On my Linux, it would mean: only pass the low 8 bits of attr.
But since it "just" works on my Linux, I prefer to only make minimum changes to fix this issue on Linux. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2019-08-14 10:40:24 | vstinner | set | recipients:
+ vstinner, mgedmin |
| 2019-08-14 10:40:24 | vstinner | set | messageid: <1565779224.62.0.64657216927.issue37738@roundup.psfhosted.org> |
| 2019-08-14 10:40:24 | vstinner | link | issue37738 messages |
| 2019-08-14 10:40:24 | vstinner | create | |
|