##// END OF EJS Templates
Be a little smarter about invisible characters in terminal prompts...
Be a little smarter about invisible characters in terminal prompts This is a partial fix to #8724. Previously, only known color codes were considered to be invisible. Now, it looks for any kind of invisible sequence as defined by the \001 \002 delimiters (which is what readline uses). The situation could still be improved, as it still assumes that the number of invisible characters is constant for a given template. Making this work correctly with the existing API is awkward, so I didn't attempt it, especially since the readline frontend may be removed at some point in the near future.

File last commit:

r6547:cca0bfa1
r21605:8e996f80
Show More
nonascii.py
5 lines | 175 B | text/x-python | PythonLexer
Thomas Kluyver
Workaround for bug in Python 3.1 py_compile
r6547 # coding: iso-8859-5
Thomas Kluyver
Add file required for Unicode test.
r6302 # (Unlikely to be the default encoding for most testers.)
# ������������������� <- Cyrillic characters
from __future__ import unicode_literals
u = '����'