def write_and_convert(self, text):
        cursor = 0
        for match in self.ANSI_RE.finditer(text):
            start, end = match.span()
            self.write_plain_text(text, cursor, start)
            self.convert_ansi(*match.groups())
            cursor = end
        self.write_plain_text(text, cursor, len(text))
Handle the child added event for the status item.
dataset/ETHPy150Open floooh/fips/colorama/ansitowin32.py/AnsiToWin32.write_and_convert--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_status_item.py/QtStatusItem.child_added