]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154525: Fix curses getcchar() failure on ncurses older than 6.3 (GH-154526)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 23 Jul 2026 14:48:17 +0000 (17:48 +0300)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2026 14:48:17 +0000 (17:48 +0300)
commitaad438b0b61206ff67f32aa1ca24792f26f6fff9
tree653938a1cec80d3a153893ff7fd985ac0c0577b6
parent7745710bec7f6de899e97d6f87528035e8977d85
gh-154525: Fix curses getcchar() failure on ncurses older than 6.3 (GH-154526)

getcchar() rejected a non-NULL opts argument before ncurses 6.3, so read
the color pair through the short slot instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Modules/_cursesmodule.c