• Home
  • Raw
  • Download

Lines Matching refs:curses

1 :mod:`curses` --- Terminal handling for character-cell displays
4 .. module:: curses
5 :synopsis: An interface to the curses library, providing portable terminal
14 The :mod:`curses` module provides an interface to the curses library, the
17 While curses is most widely used in the Unix environment, versions are available
19 designed to match the API of ncurses, an open-source curses library hosted on
38 Module :mod:`curses.ascii`
41 Module :mod:`curses.panel`
42 A panel stack extension that adds depth to curses windows.
44 Module :mod:`curses.textpad`
45 Editable text widget for curses supporting :program:`Emacs`\ -like bindings.
47 :ref:`curses-howto`
48 Tutorial material on using curses with Python, by Andrew Kuchling and Eric
51 The :source:`Demo/curses/` directory in the Python source distribution contains
52 some example programs using the curses bindings provided by this module.
60 The module :mod:`curses` defines the following exception:
65 Exception raised when a curses library function returns an error.
73 The module :mod:`curses` defines the following functions:
132 program is using curses. (Its counterpart is the "shell" mode, for when the
133 program is not in curses.) Subsequent calls to :func:`reset_prog_mode` will
140 program is not using curses. (Its counterpart is the "program" mode, when the
141 program is using curses capabilities.) Subsequent calls to
152 Update the physical screen. The curses library keeps two data structures, one
179 is a property of the controlling tty of the curses program, and is not set by
180 the curses library itself.
298 If there is an error opening the terminal, the underlying curses library may
310 Return ``True`` if :func:`endwin` has been called (that is, the curses library has
327 this is a property of the controlling tty of the curses program, and is not set
328 by the curses library itself.
416 off, curses can sometimes speed up vertical motion a little; also, it will be
463 presented to curses input functions one by one.
497 adjusts other bookkeeping data used by the curses library that record the
528 blue, magenta, cyan, and white), and two global variables in the :mod:`curses`
537 information is useful when a curses program needs complete control over the
582 The curses library does "line-breakout optimization" by looking for typeahead
616 and :envvar:`COLUMNS` (used by default) are set, or if curses is running in a
626 curses.COLOR_RED, -1)`` initializes, for instance, color pair *x* to a red
632 Initialize curses and call another callable object, *func*, which should be the
633 rest of your curses-using application. If the application raises an exception,
899 If *flag* is ``False``, curses no longer considers using the hardware insert/delete
901 and deletion is enabled. When curses is first initialized, use of character
907 If called with *yes* equal to 1, :mod:`curses` will try and use hardware line
978 :meth:`refresh`; otherwise return ``False``. Raise a :exc:`curses.error`
991 will be interpreted by :mod:`curses`. If *yes* is 0, escape sequences will be
1104 Reallocate storage for a curses window to adjust its dimensions to the
1217 The :mod:`curses` module defines the following data members:
1222 Some curses routines that return an integer, such as :func:`getch`, return
1228 Some curses routines that return an integer, such as :func:`napms`, return
1484 emulations such as X terminals. When there is no graphic available, curses
1604 :mod:`curses.textpad` --- Text input widget for curses programs
1607 .. module:: curses.textpad
1608 :synopsis: Emacs-like input editing in a curses window.
1615 The :mod:`curses.textpad` module provides a :class:`Textbox` class that handles
1616 elementary text editing in a curses window, supporting a set of keybindings
1621 The module :mod:`curses.textpad` defines the following function:
1646 Return a textbox widget object. The *win* argument should be a curses