]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152233: Make the curses cell API work without ncursesw (ПР-152466)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 28 Jun 2026 05:22:43 +0000 (08:22 +0300)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2026 05:22:43 +0000 (05:22 +0000)
commit95bfaffd522675287dc176d75a4d23e708435e6d
treec234f45881ae07325460b49506576be49e7910b2
parentc253f0c14b046cf79881d0602620a3b2a15c2316
gh-152233: Make the curses cell API work without ncursesw (ПР-152466)

Back complexchar, complexstr and the cell read methods (in_wch,
in_wchstr, in_wstr, getbkgrnd) with a chtype instead of a cchar_t when
ncursesw is absent, so the same code works on both builds.  A narrow
build is limited to one character per cell, encodable as a single byte in
the window's encoding (8-bit locales), with the color pair limited to the
color_pair() range.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/curses.rst
Doc/whatsnew/3.16.rst
Lib/test/test_curses.py
Misc/NEWS.d/next/Library/2026-06-20-02-14-55.gh-issue-151757.TP9A2x.rst
Misc/NEWS.d/next/Library/2026-06-25-22-41-49.gh-issue-152233.pEhm3q.rst
Misc/NEWS.d/next/Library/2026-06-26-11-20-00.gh-issue-152233.Kp7mQ2.rst
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h