GNU Info

Info Node: (python2.1-lib.info)curses.textpad

(python2.1-lib.info)curses.textpad


Next: curses.wrapper Prev: curses Up: Generic Operating System Services
Enter node , (file) or (file)node

Text input widget for curses programs
=====================================

This manual section was written by Eric Raymond <esr@thyrsus.com>.
This module was written by Eric Raymond <esr@thyrsus.com>.
Emacs-like input editing in a curses window.  _Added in Python version
1.6_

The `curses.textpad' module provides a `Textbox' class that handles
elementary text editing in a curses window, supporting a set of
keybindings resembling those of Emacs (thus, also of Netscape
Navigator, BBedit 6.x, FrameMaker, and many other programs).  The
module also provides a rectangle-drawing function useful for framing
text boxes or for other purposes.

The module `curses.textpad' defines the following function:

`rectangle(win, uly, ulx, lry, lrx)'
     Draw a rectangle.  The first argument must be a window object; the
     remaining arguments are coordinates relative to that window.  The
     second and third arguments are the y and x coordinates of the upper
     left hand corner of the rectangle To be drawn; the fourth and fifth
     arguments are the y and x coordinates of the lower right hand
     corner.  The rectangle will be drawn using VT100/IBM PC forms
     characters on terminals that make this possible (including xterm
     and most other software terminal emulators).  Otherwise it will be
     drawn with ASCII dashes, vertical bars, and plus signs.

Textbox objects

automatically generated by info2www version 1.2.2.9