[pypy-issue] [issue906] CTRL-leftarrow and CTRL-rightarrow don't work in PyPy console

Michael Hudson-Doyle tracker at bugs.pypy.org
Sun Oct 16 23:53:16 CEST 2011

Michael Hudson-Doyle <micahel at gmail.com> added the comment:

If I remember correctly, the problem here is that there is no entry in the
terminfo database to let pyrepl know what escape sequences correspond to
control-<arrow key>.  If I'm wrong, this is super easy to fix.  If I'm not, I'm
not sure what the best thing to do is -- of course, probably basically everyone
these days uses something that derives at least in some sense from xterm, so
hard coding what that sends (^[[1;5C/^[[1;5D) might well work fine.  I wonder
what readline does...

nosy: +mwh

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list