blob: 877e149d4412352fbee0df865a716ee4079b7968 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- a/daemonocle/helpers.py
+++ b/daemonocle/helpers.py
@@ -1,5 +1,6 @@
import os
import posixpath
+import shutil
from collections.abc import Callable
from concurrent.futures import ThreadPoolExecutor, as_completed
from operator import itemgetter
@@ -210,7 +211,7 @@
if json:
status_width = max(len(json_encode(s)) for s in statuses)
- term_width, term_height = click.get_terminal_size()
+ term_width, term_height = shutil.get_terminal_size()
if status_width + 3 > term_width:
message = json_encode(statuses, pretty=True)
|