]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/minicurses.py
[downloader] Add colors to download progress
[yt-dlp.git] / yt_dlp / minicurses.py
index 699b1158abdfb6cd6c6bbaaa19cc02adf5c86339..c81153c1e0c21e1dc2dfd88d89c53063760abcb5 100644 (file)
@@ -78,6 +78,7 @@ class MultilinePrinterBase:
     def __init__(self, stream=None, lines=1):
         self.stream = stream
         self.maximum = lines - 1
+        self._HAVE_FULLCAP = supports_terminal_sequences(stream)
 
     def __enter__(self):
         return self
@@ -124,7 +125,6 @@ def __init__(self, stream=None, lines=1, preserve_output=True):
         self.preserve_output = preserve_output
         self._lastline = self._lastlength = 0
         self._movelock = Lock()
-        self._HAVE_FULLCAP = supports_terminal_sequences(self.stream)
 
     def lock(func):
         @functools.wraps(func)