]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152332: Add the curses.term_attrs() function (GH-152333)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 27 Jun 2026 20:23:55 +0000 (23:23 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2026 20:23:55 +0000 (23:23 +0300)
commit0ed67114659d03702a5ad1a25db6f2b9d0aae39b
treef2731fdd639831cf5c02968a96c15f555bf826b6
parent003d3620cc0f44caca7bf26c3e6964f5f379645f
gh-152332: Add the curses.term_attrs() function (GH-152333)

term_attrs() returns the video attributes supported by the terminal as
WA_* values, the counterpart of termattrs() for the A_* values.

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