mirror of https://github.com/kholia/OSX-KVM.git
Compare commits
3 Commits
c9a6c5e1fb
...
304ff6a470
Author | SHA1 | Date |
---|---|---|
|
304ff6a470 | |
|
76bea74a08 | |
|
9babbb28d7 |
|
@ -17,6 +17,8 @@
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
#cd to script location
|
||||||
|
cd "${0%/*}"
|
||||||
|
|
||||||
MY_OPTIONS="+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check"
|
MY_OPTIONS="+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check"
|
||||||
|
|
||||||
|
|
|
@ -234,7 +234,10 @@ def save_image(url, sess, filename='', directory=''):
|
||||||
break
|
break
|
||||||
fh.write(chunk)
|
fh.write(chunk)
|
||||||
size += len(chunk)
|
size += len(chunk)
|
||||||
terminalsize = max(os.get_terminal_size().columns - TERMINAL_MARGIN, 0)
|
try:
|
||||||
|
terminalsize = max(os.get_terminal_size().columns - TERMINAL_MARGIN, 0)
|
||||||
|
except OSError:
|
||||||
|
terminalsize = 80
|
||||||
if oldterminalsize != terminalsize:
|
if oldterminalsize != terminalsize:
|
||||||
print(f'\r{"":<{terminalsize}}', end='')
|
print(f'\r{"":<{terminalsize}}', end='')
|
||||||
oldterminalsize = terminalsize
|
oldterminalsize = terminalsize
|
||||||
|
|
Loading…
Reference in New Issue