]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152260: Add curses.scr_dump(), scr_restore(), scr_init() and scr_set() (GH-152261)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 26 Jun 2026 16:36:31 +0000 (19:36 +0300)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2026 16:36:31 +0000 (16:36 +0000)
commita85e73b322c80d46537b6ca03bdf6c9cce1d7cea
tree4b11f6f09f23fe6ec4ae58e565feecb362a907c1
parentbf61794fd2c293d79a81f3578fd3fc3f96dd341c
gh-152260: Add curses.scr_dump(), scr_restore(), scr_init() and scr_set() (GH-152261)

These module-level functions write the whole virtual screen to a file and
load it back -- the screen-wide counterpart of window.putwin()/getwin().
The filename argument accepts a string or a path-like object.

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-15-10-00.gh-issue-152260.Rk4nP9.rst [new file with mode: 0644]
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h