Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Doc/library/curses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ The module :mod:`curses` defines the following functions:
Initialize the library. Return a :ref:`window <curses-window-objects>` object
which represents the whole screen.

See :func:`setupterm` for a caveat about calling it before this function.

.. note::

If there is an error opening the terminal, the underlying curses library may
Expand Down Expand Up @@ -568,6 +570,13 @@ The module :mod:`curses` defines the following functions:
terminfo database entry could not be read. If the terminal has already
been initialized, this function has no effect.

.. note::

Calling :func:`initscr` after :func:`setupterm`
leaks the terminal that :func:`setupterm` allocated:
the curses library keeps only a single current terminal
and does not free the previously allocated one.


.. function:: start_color()

Expand Down
Loading