mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)
Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
This commit is contained in:
parent
db6d9a50ce
commit
da4e09fff6
7 changed files with 258 additions and 224 deletions
|
@ -242,6 +242,15 @@ The module :mod:`curses` defines the following functions:
|
|||
|
||||
Return ``True`` if the terminal can display colors; otherwise, return ``False``.
|
||||
|
||||
.. function:: has_extended_color_support()
|
||||
|
||||
Return ``True`` if the module supports extended colors; otherwise, return
|
||||
``False``. Extended color support allows more than 256 color pairs for
|
||||
terminals that support more than 16 colors (e.g. xterm-256color).
|
||||
|
||||
Extended color support requires ncurses version 6.1 or later.
|
||||
|
||||
.. versionadded:: 3.10
|
||||
|
||||
.. function:: has_ic()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue