diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2003-08-13 23:11:04 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2003-08-13 23:11:04 (GMT) |
commit | 69f31eb80c86f74cf35ae313870f87b6611293fa (patch) | |
tree | 16babeca0ce1b9f6d59c37ac730d0dd17b5defb8 /Doc | |
parent | a54b92b2ebcbaaa4b7f77ff411a73a820522a67b (diff) | |
download | cpython-69f31eb80c86f74cf35ae313870f87b6611293fa.zip cpython-69f31eb80c86f74cf35ae313870f87b6611293fa.tar.gz cpython-69f31eb80c86f74cf35ae313870f87b6611293fa.tar.bz2 |
[Patch #739124] Add use_default_colors() to curses module
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libcurses.tex | 9 | ||||
-rw-r--r-- | Doc/whatsnew/whatsnew24.tex | 7 |
2 files changed, 14 insertions, 2 deletions
diff --git a/Doc/lib/libcurses.tex b/Doc/lib/libcurses.tex index 296e887..1eace43 100644 --- a/Doc/lib/libcurses.tex +++ b/Doc/lib/libcurses.tex @@ -537,6 +537,15 @@ a window (in which case default behavior would be to use the window size if \envvar{LINES} and \envvar{COLUMNS} are not set). \end{funcdesc} +\begin{funcdesc}{use_default_colors}{} +Allow use of default values for colors on terminals supporting this +feature. Use this to support transparency in your +application. The default color is assigned to the color number -1. +After calling this function, +\function{init_pair(x, curses.COLOR_RED, -1)} initializes, for instance, +color pair \var{x} to a red foreground color on the default background. +\end{funcdesc} + \subsection{Window Objects \label{curses-window-objects}} Window objects, as returned by \function{initscr()} and diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex index e49825f..2f0df30 100644 --- a/Doc/whatsnew/whatsnew24.tex +++ b/Doc/whatsnew/whatsnew24.tex @@ -69,8 +69,11 @@ details. \begin{itemize} -\item Descriptions go here. - +\item The \module{curses} modules now supports the ncurses extension + \function{use_default_colors()}. On platforms where the terminal + supports transparency, this makes it possible to use a transparent background. + (Contributed by J\"org Lehmann.) + \end{itemize} |