This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lonetwin
Recipients georg.brandl, lonetwin
Date 2014-01-23.10:10:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390471817.65.0.0410014717018.issue20359@psf.upfronthosting.co.za>
In-reply-to
Content
Although surrounding the escapes with \x01 and \x02 worked to correctly remove the message while doing a reverse-i-search (thus preserving the original line), the input line measurement still appears to be incorrect as demonstated with the following actions:

[steve@localhost ~]$ python
Python 2.7.5 (default, Nov 12 2013, 16:18:42) 
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.ps1 = '\x01\033[32m>>> \033[0m\x02'
>>> # on the next line, press the up arrow to get this line and then backspace, over the entire prompt
... 
#<-- backspaced up until here
... 


...again, not a big deal, just annoying when deleting word with a repeated 'alt+backspace' or ctrl+w
History
Date User Action Args
2014-01-23 10:10:17lonetwinsetrecipients: + lonetwin, georg.brandl
2014-01-23 10:10:17lonetwinsetmessageid: <1390471817.65.0.0410014717018.issue20359@psf.upfronthosting.co.za>
2014-01-23 10:10:17lonetwinlinkissue20359 messages
2014-01-23 10:10:17lonetwincreate