line completion

Chris Rebert clp2 at
Sun Aug 23 00:52:29 CEST 2009

On Thu, Aug 20, 2009 at 9:06 AM, Steven Woody<narkewoody at> wrote:
> Hi,
> I wrote a program that takes some user input.  Many inputs are quit often
> used by user, so when a user launch the program, and type in "The Sha",  he
> wants to get "wshank Redemption" displayed automatically in reversed color
> (black text on white background) along his cursor.  When he decided to use
> "The Shawshank Redemption", he just press the enter key, otherwise, he type
> in other words anyway.
> My question is, is there any module that can easy the implementation of this
> feature?  Thanks.

The `readline` module in the standard library:

Although I don't know how to get it to colorize the interface.


More information about the Python-list mailing list