diff --git a/src/utils/ansi.py b/src/utils/ansi.py index 84d7a7f54d..3355f41cca 100644 --- a/src/utils/ansi.py +++ b/src/utils/ansi.py @@ -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)