Changed ansi parser to strip hard-coded ansi codes inserted raw into the stream, as discussed in #551.

This commit is contained in:
Griatch 2014-08-20 20:15:11 +02:00
parent 6e046b39d0
commit 8afdbc6adb

View file

@ -189,6 +189,9 @@ class ANSIParser(object):
if not string:
return ''
# remove hard-coded strings
string = self.strip_raw_codes(string)
# check cached parsings
global _PARSE_CACHE
cachekey = "%s-%s-%s" % (string, strip_ansi, xterm256)