Damian added the comment:
Just a quick comment that I ran into this again, but turns out that it's not an
issue with python. Rather, this is a quirk with how readline works...
https://stackoverflow.com/questions/9468435/look-how-to-fix-column-calculation-in-python-readline-if-use-color-prompt
Terry J. Reedy added the comment:
Thanks for the followup. This should be useful info for anyone who finds this
issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12972
___
Terry J. Reedy tjre...@udel.edu added the comment:
Since 2.7 was released after 3.1, I will assumed any bugfix was applied there
also until someone determines otherwise. Thanks for checking.
--
resolution: - out of date
status: open - closed
___
Damian atag...@gmail.com added the comment:
Retested with Python 3.1.1 and this issue doesn't manifest. This can be
resolved - sorry about the noise. :)
--
nosy: +atagar
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12972
Terry J. Reedy tjre...@udel.edu added the comment:
From your version choice, you apparently are using 2.6, which is in
security-fix only mode. Please test with the latest 2.7 and/or 3.2.
--
nosy: +terry.reedy
stage: - test needed
versions: +Python 2.7 -Python 2.6
New submission from Damian atag...@gmail.com:
Hi, when using terminal coloring codes (for instance '\x1b[32mhello
world\x1b[0m' for a green 'hello world') the raw_input function and readline
module behave well except under a very specific use case...