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:
Hans Petter Jansson 2020-08-03 22:51:33 -05:00 committed by GitHub
parent db6d9a50ce
commit da4e09fff6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 258 additions and 224 deletions

View file

@ -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()