def convert_osc(self, text):
        for match in self.ANSI_OSC_RE.finditer(text):
            start, end = match.span()
            text = text[:start] + text[end:]
            paramstring, command = match.groups()
            if '\x07' in command:       # \x07 = BEL
                params = paramstring.split(";")
                # 0 - change title and icon (we will only change title)
                # 1 - change icon (we don't support this)
                # 2 - change title
                if params[0] in '02':
                    winterm.set_title(params[1])
        return text
dataset/ETHPy150Open nil0x42/phpsploit/deps/colorama-0.3.7/colorama/ansitowin32.py/AnsiToWin32.convert_osc/swapped operands of `in`