mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
[Patch #739124] Add use_default_colors() to curses module
This commit is contained in:
parent
a54b92b2eb
commit
69f31eb80c
6 changed files with 44 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue