readline clear buffer

Skip Montanaro skip at
Sat Apr 12 15:38:35 CEST 2003

    Alex> Right: it seems that Python's readline.c does not expose
    Alex> interfaces to rl_delete_text, rl_kill_text, or other GNU Readline
    Alex> functions that would allow such behavior.

GNU readline has a huge API (I count over 340 extern declarations in
readline/{readline.h,history.h}, the two programmer-visible #include files).
I believe the approach all along has been to expose just those parts of the
API necessary for the current task at hand.  I realize this means the
interface will be incomplete, but it's not clear that most of it is
necessary for common tasks.  So, yes, submit a patch which includes wrappers
for the functions you're interested in.


More information about the Python-list mailing list