From: pukkandan Date: Sat, 9 Jan 2021 12:10:01 +0000 (+0530) Subject: Fix incorrect ANSI sequence for restoring console-window title (https://github.com... X-Git-Tag: 2021.01.09~2 X-Git-Url: https://jfr.im/git/yt-dlp.git/commitdiff_plain/d9eebbc7471b97f3aa58939685bd7b8f4ce35b1e Fix incorrect ANSI sequence for restoring console-window title (https://github.com/ytdl-org/youtube-dl/pull/26637) Authored by: glenn-slayden --- diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py index 2ecb137fc..019b8773e 100644 --- a/youtube_dlc/YoutubeDL.py +++ b/youtube_dlc/YoutubeDL.py @@ -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):