[pypy-issue] [issue1491] raw_input incorrectly places cursor when given escape sequences

sn6uv tracker at bugs.pypy.org
Wed Sep 11 12:54:30 CEST 2013


sn6uv <16sn6uv at gmail.com> added the comment:

Workaround: wrap the ANSI colour sequences in \001, \002

For the example above
>>> raw_input('\001\033[31m\002>>> \001\033[39m\002')

Confirmed for 2.1.0 also:
$pypy --version                                                  ~
Python 2.7.3 (480845e6b1dd219d0944e30f62b01da378437c6c, Aug 08 2013, 17:02:19)
[PyPy 2.1.0 with GCC 4.8.1 20130725 (prerelease)]

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1491>
________________________________________


More information about the pypy-issue mailing list