You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The :mod:curses module exposes :func:curses.termattrs, which returns the logical OR of all video attributes supported by the terminal as a chtype (the A_* attributes), but not its X/Open counterpart term_attrs().
term_attrs() returns the same information as an attr_t value, that is, in terms of the WA_* extended attributes (added in gh-152219).
Proposed API:
curses.term_attrs() -> int
The result pairs with the WA_* constants, for example curses.term_attrs() & curses.WA_BOLD.
Activity
gh-152332: Add the curses.term_attrs() function (GH-152333)