macconsole -- Python library reference
Next: macdnr
Prev: ctb
Up: Macintosh Specific Services
Top: Top
14.4. Built-in Module macconsole
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.
- options -- data of module macconsole
-
An object allowing you to set various options when creating windows,
see below.
- C_ECHO -- data of module macconsole
-
- C_NOECHO -- data of module macconsole
-
- C_CBREAK -- data of module macconsole
-
- C_RAW -- data of module macconsole
-
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 () -- function of module macconsole
-
Open a new console window. Return a console window object.
- fopen (fp) -- function of module macconsole
-
Return the console window object corresponding with the given file
object. fp should be one of
sys.stdin
, sys.stdout
or
sys.stderr
.
Menu
- macconsole options object
- console window object
Next: macdnr
Prev: ctb
Up: Macintosh Specific Services
Top: Top