'Replacer used by `re.sub` to replace ANSI
markers with correct ANSI sequences
Args:
ansimatch (re.matchobject): The match.
Returns:
processed (str): The processed match string.'

def sub_ansi(self, ansimatch):

    return self.ansi_map.get(ansimatch.group(), '')
