bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)
Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
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 @@
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()