mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-46000: Improve NetBSD curses compatibility (GH-29947)
(cherry picked from commit 2fb797e93c
)
Co-authored-by: Thomas Klausner <tk@giga.or.at>
This commit is contained in:
parent
64c2788f42
commit
bb76410824
2 changed files with 3 additions and 2 deletions
|
@ -1226,8 +1226,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue