[issue20359] Having escape sequences (like color codes) in the sys.ps1 messes up readline's input line calculations
Georg Brandl
report at bugs.python.org
Thu Jan 23 11:43:45 CET 2014
Georg Brandl added the comment:
I think you're using the escapes correctly: you must only escape nonprinting characters. Try
>>> sys.ps1 = '\x01\033[32m\x02>>> \x01\033[0m\x02'
----------
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20359>
_______________________________________
More information about the Python-bugs-list
mailing list