]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154749: Reject a terminal-less screen in curses.set_term() (GH-154750)
authorVyron Vasileiadis <hi@fedonman.com>
Mon, 27 Jul 2026 18:59:46 +0000 (21:59 +0300)
committerGitHub <noreply@github.com>
Mon, 27 Jul 2026 18:59:46 +0000 (18:59 +0000)
commitb099df5f177e43ebefde24a6714729277aa1bf8c
treebb658bfcc75feecec7d1e5fd86dd2aece30a1b8d
parent92efaff49b100371d66e356b0ab62c35ec7c5fe8
gh-154749: Reject a terminal-less screen in curses.set_term() (GH-154750)

set_term() accepted a screen returned by new_prescr(), which has no
terminal, and the next refresh crashed inside curses.  Raise
curses.error instead.
Doc/library/curses.rst
Lib/test/test_curses.py
Modules/_cursesmodule.c