]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151774: Add curses dynamic color-pair functions (GH-151775)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 24 Jun 2026 18:24:11 +0000 (21:24 +0300)
committerGitHub <noreply@github.com>
Wed, 24 Jun 2026 18:24:11 +0000 (21:24 +0300)
commit3cd4283ba67f7a2f42d966e7f8cc558bb1aee3ac
treee4614cf7355065070dfb8bcc9bd6ce0a3b49698e
parentc7faa6936e17630ec26d4e0438ae9b95561b7151
gh-151774: Add curses dynamic color-pair functions (GH-151775)

Add alloc_pair(), find_pair(), free_pair() and reset_color_pairs(),
wrapping the ncurses extended-color dynamic pair management.  They are
available only when built against a wide-character ncurses with
extended-color support.

Co-authored-by: Claude Opus 4.8 (1M context) <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-11-11-22.gh-issue-151774.O6nrvs.rst [new file with mode: 0644]
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h