complete GNU readline support?

Ovidiu Predescu ovidiu at cup.hp.com
Tue Jun 1 18:34:51 EDT 1999


Ken Kinder wrote:
> 
> Ovidiu Predescu wrote:
> >
> > Hi,
> >
> > I'm trying to access some advanced GNU readline capabilities from Python
> > 1.5.2 but it doesn't seem that the readline module supports them. Is
> > there an extension to it that has bindings to GNU readline in a similar
> > way the Perl module has? I'm interested in supporting keymaps and
> > asynchronous reads from the terminal.
> 
> Yeah, I think I saw something like that, but I can't find a URL.  You
> also might take a look at the rlcompleter module.  I think together,
> they do give you all the readline stuff.  Make sure and look at all the
> module functions, not just their enhancements to raw_input.
> 
> - Ken

I did take a look at the readline support but could find what I was
interested in. I was interested in having support for all the various
hooks present in readline, for keymaps support, undo and most important
of all, in the alternate interface, that allows my programs to be listen
to multiple sockets and in the same time have a readline interface.

I ended up writing a new, complete, readline module for Python. The old
interface seems to work pretty nice. The rlcompleter module works the
same the only modification I had to do was to import the new module.

Greetings,
-- 
Ovidiu Predescu <ovidiu at cup.hp.com>
http://www.geocities.com/SiliconValley/Monitor/7464/




More information about the Python-list mailing list