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
11 changes: 11 additions & 0 deletions Doc/library/curses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Initialization and termination
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 @@ -106,6 +108,8 @@ Initialization and termination
The new screen becomes the current one.
Use :func:`set_term` to switch between screens.

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

.. versionadded:: next

.. function:: new_prescr()
Expand Down Expand Up @@ -957,6 +961,13 @@ Terminfo database
terminfo database entry could not be read. If the terminal has already
been initialized, this function has no effect.

.. note::

Calling :func:`initscr` or :func:`newterm` 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:: tigetflag(capname)

Return the value of the Boolean capability corresponding to the terminfo
Expand Down
Loading