Open chiffa opened 8 years ago
I too am experiencing the same problem. Based a very brief review of the pyreadline implementation, I don't believe the library implements the correct hooks for the native raw_input / input methods to trap the key presses you mentioned. I'm guessing, just base on an equally brief review of the project homepage, that this functionality is only currently supported under IronPython - the .NET variation of the Python runtime. I suspect running under there the tab completion will work (untested of course).
I'd be curious if my assumptions here are correct / accurate and if there is any interest / incentive by the project maintainers to add support for this under the native CPython interpreter.
Hello there!
I am experiencing some problems with using pyreadline module for arbitrary input autcomplete. The summary of my problem is available here.
To sum up the problem, I am trying to implement an arbitrary autocomplete on windows for a command-line user interface I am writing. Inspired by the first answer to that StackOverflow question, I copied it and adapted to run with pyreadline instead of readline, since I am no windows.
The problem is however when I try to run that script,
<TAB>
does not lead to autocomplete, but instead appends a tab to the input.I am trying to execute it on 2.7 Anaconda Python distribution in Windows 10, if this is of any use.