readline clear buffer

luc wastiaux luc at
Fri Apr 11 23:38:40 CEST 2003

when using readline, I can retrieve the contents of the line buffer using 

but is there a way to clear this buffer ? none of the provided functions 
seem to allow that:

what I would like to do is TAB-complete a command containing more than one 
word, ie:

/msg user1 <TAB> 
inserts /msg user2

on the command line, and this cyclically given a certain list of users. 
Does anyone have an idea of how to do that?

thanks in advance for any suggestions.

luc wastiaux
 $ finger luc at

More information about the Python-list mailing list