Sujet : Re: python repl vi mode line editing not working.
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 09. Jul 2024, 15:40:43
Autres entêtes
Organisation : Stefan Ram
Message-ID : <readline-20240709143958@ram.dialup.fu-berlin.de>
References : 1
Tobiah <
toby@tobiah.org> wrote or quoted:
1
1
2
2
^[k
Works here under a Linux with Python 3. I add the lines from
your rc files to my rc files, call "python3", and then I see
|>>> 1
|1
|>>> 2
|2
|>>> 2
after pressing [1][enter][2][enter][escape][k].
(It seems Python 2 is not available to me on this system.)
For this to work, the Python implementation should use the same
readline library as your shell, I guess.