Inserting a tab with tab completion enabled on win32

N

News Sympatico

I've followed the tab completion example given in the Library Reference
docs for the rlcompleter module that makes the tab key do name
completion. That works but now you need another key stroke to insert an
actual tab.

I've tried lines like:

readline.parse_and_bind("\C-o: tab-insert")

and they work fine under Linux but on Windows they raise a KeyError.

I'm using the readline package from UNC Python Tools on Python 2.4.

Does anyone know how to fix this or is there even some other way to
insert an indent (do I have to type spaces?)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top