mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 16:45:17 +00:00
[downloader] Add colors to download progress
This commit is contained in:
@ -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 @@ class MultilinePrinter(MultilinePrinterBase):
|
||||
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)
|
||||
|
Reference in New Issue
Block a user