GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • 6.13.1 Textbox objects

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org — 6.13 curses.textpad -- Text input widget for curses programs

Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 6.12.3 Constants Up: 6. Generic Operating System Next: 6.13.1 Textbox objects

6.13 curses.textpad -- Text input widget for curses programs

New in 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.


Subsections
  • 6.13.1 Textbox objects


Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 6.12.3 Constants Up: 6. Generic Operating System Next: 6.13.1 Textbox objects

See About this document... for information on suggesting changes.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.