summaryrefslogtreecommitdiffstats
path: root/Doc/library/curses.rst
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@copyleft.no>2020-08-04 03:51:33 (GMT)
committerGitHub <noreply@github.com>2020-08-04 03:51:33 (GMT)
commitda4e09fff6b483fe858997da5599c25397107ca1 (patch)
treec8e8855af9dd51094e58bcdb356ce7ce5237326e /Doc/library/curses.rst
parentdb6d9a50cee92c0ded7c5cb87331c5f0b1008698 (diff)
downloadcpython-da4e09fff6b483fe858997da5599c25397107ca1.zip
cpython-da4e09fff6b483fe858997da5599c25397107ca1.tar.gz
cpython-da4e09fff6b483fe858997da5599c25397107ca1.tar.bz2
bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)
Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
Diffstat (limited to 'Doc/library/curses.rst')
-rw-r--r--Doc/library/curses.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index c86ca5d..0b687db 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -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()