Alternative Readline (was Re: Colored console on Windows)

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Thu Nov 22 19:03:03 EST 2001


----- Original Message -----
From: "Fernando Pérez" <fperez528 at yahoo.com>


> Hi Chris,
>
> quick question: does your readline module handle multi-line edits? That
is,
> if I have a multi-line statement, does it bring it back as a single
editable
> entity (which would be great) or as the 'real' readline does, as a series
of
> single-line statements (clumsy).

It's not directly my problem.  Python provides a hook for readline, for
the purpose of reading single lines.  My Alternative Readline package
consists of a module _rlsetup which allows Python (vs. C) code to be
linked to the hook, and a Python module providing line editing.

The Python interpreter core handles collecting multiline commands, and
AFAIK I can't change the behavior.







More information about the Python-list mailing list