| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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>
Documentation build overview22 files changed · ± 22 modified ± Modified |
Sorry, something went wrong.
These four functions were added in ncurses 6.5; guarding them with the same NCURSES_EXT_FUNCS >= 20110404 as the window getters broke the build on older ncurses (e.g. macOS, which ships 6.0). Require NCURSES_EXT_FUNCS >= 20240427. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts: # Doc/library/curses.rst # Modules/clinic/_cursesmodule.c.h
# Conflicts: # Modules/clinic/_cursesmodule.c.h
The new window state-query methods grew PyCursesWindow_methods[] past the default 200-line limit, crashing check-c-globals. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts: # Doc/whatsnew/3.16.rst # Modules/clinic/_cursesmodule.c.h
|
@serhiy-storchaka, many Buildbots are now failing on test_state_getters: |
Sorry, something went wrong.
|
Thank you for noticing. They are terminal depending. I forgot to run these tests on different terminals. #152304 should fix the test. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Wrap the ncurses "opaque" accessors that report curses state which the standard API can only set, never read back.
New window methods:
New module functions: is_cbreak, is_echo, is_nl and is_raw report the current terminal mode set by cbreak, echo, nl and raw.
All of these are available only when Python is built against an ncurses with NCURSES_EXT_FUNCS (ncurses 5.9 and later).
🤖 Generated with Claude Code