]> jfr.im git - yt-dlp.git/commitdiff
Fix incorrect ANSI sequence for restoring console-window title (https://github.com...
authorpukkandan <redacted>
Sat, 9 Jan 2021 12:10:01 +0000 (17:40 +0530)
committerpukkandan <redacted>
Sat, 9 Jan 2021 12:38:07 +0000 (18:08 +0530)
Authored by: glenn-slayden

youtube_dlc/YoutubeDL.py

index 2ecb137fc9b6043356f74a0431a348bdd4afc1ba..019b8773e46ff5705dfdf3c75c4ae6dd65d17012 100644 (file)
@@ -589,7 +589,7 @@ def to_console_title(self, message):
                 # already of type unicode()
                 ctypes.windll.kernel32.SetConsoleTitleW(ctypes.c_wchar_p(message))
         elif 'TERM' in os.environ:
-            self._write_string('\033]0;%s\007' % message, self._screen_file)
+            self._write_string('\033[0;%s\007' % message, self._screen_file)
 
     def save_console_title(self):
         if not self.params.get('consoletitle', False):