aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-11-17 21:12:50 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-11-17 21:12:50 +0100
commit749febf4d1513328ca8b9b6c16969d8c70ff4555 (patch)
treed665b29ec4e1dbb01d28741683861c86d914318c /youtube_dl
parentbdde425cbe01329d8c24e18cf0492465abb21411 (diff)
Allow --console-title when --quiet is given (Fixes #1783)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/YoutubeDL.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 4e28f9120..20eed96ca 100644
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -211,19 +211,19 @@ class YoutubeDL(object):
# already of type unicode()
ctypes.windll.kernel32.SetConsoleTitleW(ctypes.c_wchar_p(message))
elif 'TERM' in os.environ:
- self.to_screen('\033]0;%s\007' % message, skip_eol=True)
+ write_string(u'\033]0;%s\007' % message, self._screen_file)
def save_console_title(self):
if not self.params.get('consoletitle', False):
return
if 'TERM' in os.environ:
- self.to_screen('\033[22t')
+ write_string(u'\033[22t', self._screen_file)
def restore_console_title(self):
if not self.params.get('consoletitle', False):
return
if 'TERM' in os.environ:
- self.to_screen('\033[23t')
+ write_string(u'\033[23t', self._screen_file)
def __enter__(self):
self.save_console_title()