mirror of https://github.com/kholia/OSX-KVM.git
Compare commits
3 Commits
f0d251cc6b
...
c037a3f7ca
Author | SHA1 | Date |
---|---|---|
|
c037a3f7ca | |
|
76bea74a08 | |
|
56b3f1aca2 |
|
@ -75,7 +75,7 @@ processors work just fine (even for macOS Sonoma).
|
|||
```
|
||||
cd ~
|
||||
|
||||
git clone --depth 1 --recursive https://github.com/kholia/OSX-KVM.git
|
||||
git clone --depth 1 --recursive --shallow-submodules https://github.com/kholia/OSX-KVM.git
|
||||
|
||||
cd OSX-KVM
|
||||
```
|
||||
|
|
|
@ -234,7 +234,10 @@ def save_image(url, sess, filename='', directory=''):
|
|||
break
|
||||
fh.write(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:
|
||||
print(f'\r{"":<{terminalsize}}', end='')
|
||||
oldterminalsize = terminalsize
|
||||
|
|
Loading…
Reference in New Issue