5. macconsole -- Think C's console package

Availability: Macintosh.

This module is available on the Macintosh, provided Python has been built using the Think C compiler. It provides an interface to the Think console package, with which basic text windows can be created.

An object allowing you to set various options when creating windows, see below.

Options for the setmode method. C_ECHO and C_CBREAK enable character echo, the other two disable it, C_ECHO and C_NOECHO enable line-oriented input (erase/kill processing, etc).

copen ()
Open a new console window. Return a console window object.

fopen (fp)
Return the console window object corresponding with the given file object. fp should be one of sys.stdin, sys.stdout or sys.stderr.

Send comments on this document to python-docs@python.org.