You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
curses.complexchar / in_wch() raise "getcchar() returned ERR" on ncurses 6.1 and 6.2 #154525
On ncurses 6.1 and 6.2, reading a wide-character cell fails:
>>> import curses
>>> str(curses.complexchar('A'))
curses.error: getcchar() returned ERR
This breaks complexchar.__str__/.attr/.pair, window.in_wch(), window.getbkgrnd(), and -- since gh-153395 -- the curses.ascii predicates that stringify a complexchar, so test_curses fails even headless.
curses_getcchar() passes the color pair through the extended-color opts slot, but getcchar() rejected a non-NULL opts before ncurses 6.3 (patch 20210116). setcchar() is unaffected (construction succeeds). main (3.16) only.
Activity
gh-154525: Fix curses getcchar() failure on ncurses older than 6.3 (G…
gh-154525: Skip ncurses find_pair()/alloc_pair() reuse checks before …
pythongh-154525: Fix curses getcchar() failure on ncurses older than …
pythongh-154525: Skip ncurses find_pair()/alloc_pair() reuse checks b…