bpo-46000: Improve NetBSD curses compatibility (GH-29947)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Improve compatibility of the :mod:`curses` module with NetBSD curses.
|
||||
@@ -1230,8 +1230,8 @@ PyCursesWindow_ChgAt(PyCursesWindowObject *self, PyObject *args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
color = (short)((attr >> 8) & 0xff);
|
||||
attr = attr - (color << 8);
|
||||
color = (short) PAIR_NUMBER(attr);
|
||||
attr = attr & A_ATTRIBUTES;
|
||||
|
||||
if (use_xy) {
|
||||
rtn = mvwchgat(self->win,y,x,num,attr,color,NULL);
|
||||
|
||||
Reference in New Issue
Block a user