Skip to content

Commit 031f161

Browse files
Update Doc/library/curses.rst
1 parent 339cbcc commit 031f161

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Doc/library/curses.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ The module :mod:`curses` defines the following functions:
7373
Allow use of default values for colors on terminals supporting this feature.
7474
Use this to support transparency in your application.
7575

76-
Assign terminal default foreground/background colors to color number ``-1``.
77-
So ``init_pair(x, COLOR_RED, -1)`` will initialize pair *x* as red
78-
on default background and ``init_pair(x, -1, COLOR_BLUE)`` will
79-
initialize pair *x* as default foreground on blue.
80-
Change the definition of the color-pair ``0`` to ``(fg, bg)``.
76+
* Assign terminal default foreground/background colors to color number ``-1``.
77+
So ``init_pair(x, COLOR_RED, -1)`` will initialize pair *x* as red
78+
on default background and ``init_pair(x, -1, COLOR_BLUE)`` will
79+
initialize pair *x* as default foreground on blue.
80+
81+
* Change the definition of the color-pair ``0`` to ``(fg, bg)``.
8182

8283
.. versionadded:: next
8384

0 commit comments

Comments
 (0)