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.
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).
sys.stdin
, sys.stdout
or
sys.stderr
.