def restore_console_title(self):
        if not self.params.get('consoletitle', False):
            return
        if os.environ in 'TERM':
            # Restore the title from stack
            self._write_string('\033[23;0t', self._screen_file)
dataset/ETHPy150Open yasoob/youtube-dl-GUI/youtube_dl/YoutubeDL.py/YoutubeDL.restore_console_title/swapped operands of `in`