]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151776: Add curses state-query functions (GH-151778)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 24 Jun 2026 19:31:50 +0000 (22:31 +0300)
committerGitHub <noreply@github.com>
Wed, 24 Jun 2026 19:31:50 +0000 (22:31 +0300)
commita52f428fba37ef88b7375786d4696beb5e3602df
tree07e6bfb986289bf712d82f5de353330dc139ee10
parente0909f0f09c1119c36e7f5be8cf6eca29fdeb4ba
gh-151776: Add curses state-query functions (GH-151778)

Add window methods and module functions that report curses state which could
previously only be set: the window getters is_cleared(), is_idcok(),
is_idlok(), is_immedok(), is_keypad(), is_leaveok(), is_nodelay(),
is_notimeout(), is_pad(), is_scrollok(), is_subwin(), is_syncok(),
getdelay(), getparent() and getscrreg(), and the functions is_cbreak(),
is_echo(), is_nl() and is_raw().  They are available when built against an
ncurses with NCURSES_EXT_FUNCS.

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-12-10-02.gh-issue-151776.BtsXIF.rst [new file with mode: 0644]
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h
Tools/c-analyzer/cpython/_parser.py