| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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>
Documentation build overview16 files changed · ± 15 modified · - 1 deleted ± Modified
- Deleted |
Sorry, something went wrong.
# Conflicts: # Doc/whatsnew/3.16.rst # Modules/clinic/_cursesmodule.c.h
# Conflicts: # Modules/clinic/_cursesmodule.c.h
| Back | FazBrowse Home | New Git URL |
Add the X/Open term_attrs() function, the attr_t counterpart of the already-exposed termattrs().
term_attrs() returns the logical OR of all video attributes supported by the terminal as :ref:WA_* <curses-wa-constants> values, where termattrs() returns the equivalent A_* values as a chtype.
It is implemented with PyLong_FromUnsignedLong() rather than the int-returning helper used by termattrs(), because attr_t is unsigned (and 64-bit on an lp64 ncurses build).