]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152334: Add curses key-management functions (GH-152338)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 26 Jun 2026 22:59:24 +0000 (01:59 +0300)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2026 22:59:24 +0000 (01:59 +0300)
commit8f4abfc39256b4081d9f08125780143036900aaf
treec81d411af1a54ffafc2fc19954cb79c37adea925
parent74272d4f0b8478c1d879671ba35ec4ddaae50178
gh-152334: Add curses key-management functions (GH-152338)

Add define_key(), key_defined() and keyok(), the ncurses extensions for
managing how control strings are recognized as key codes, beyond the
predefined terminfo keys and the all-or-nothing window.keypad().

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-26-22-50-00.gh-issue-152334.Mt7vQx.rst [new file with mode: 0644]
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h