mirror of https://github.com/kholia/OSX-KVM.git
Compare commits
1 Commits
304ff6a470
...
c9a6c5e1fb
Author | SHA1 | Date |
---|---|---|
|
c9a6c5e1fb |
|
@ -234,10 +234,7 @@ def save_image(url, sess, filename='', directory=''):
|
|||
break
|
||||
fh.write(chunk)
|
||||
size += len(chunk)
|
||||
try:
|
||||
terminalsize = max(os.get_terminal_size().columns - TERMINAL_MARGIN, 0)
|
||||
except OSError:
|
||||
terminalsize = 80
|
||||
if oldterminalsize != terminalsize:
|
||||
print(f'\r{"":<{terminalsize}}', end='')
|
||||
oldterminalsize = terminalsize
|
||||
|
|
Loading…
Reference in New Issue