Annotation of pkgsrc/lang/python39/patches/patch-Modules___cursesmodule.c, revision 1.2
1.2 ! wiz 1: $NetBSD: patch-Modules___cursesmodule.c,v 1.1 2021/12/06 16:03:06 wiz Exp $
1.1 wiz 2:
3: NetBSD curses compatibility.
1.2 ! wiz 4: https://bugs.python.org/issue46000
1.1 wiz 5:
6: --- Modules/_cursesmodule.c.orig 2021-11-15 17:43:00.000000000 +0000
7: +++ Modules/_cursesmodule.c
8: @@ -1077,8 +1077,8 @@ PyCursesWindow_ChgAt(PyCursesWindowObjec
9: return NULL;
10: }
11:
12: - color = (short)((attr >> 8) & 0xff);
13: - attr = attr - (color << 8);
14: + color = (short) PAIR_NUMBER(attr);
15: + attr = attr & A_ATTRIBUTES;
16:
17: if (use_xy) {
18: rtn = mvwchgat(self->win,y,x,num,attr,color,NULL);
CVSweb <webmaster@jp.NetBSD.org>