We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 727a7d6 + 14a142d commit 6c514bbCopy full SHA for 6c514bb
1 file changed
src/commoncode/cliutils.py
@@ -6,6 +6,7 @@
6
# See https://aboutcode.org for more information about nexB OSS projects.
7
#
8
9
+import shutil
10
import sys
11
12
import click
@@ -353,7 +354,7 @@ def file_name_max_len(used_width=BAR_WIDTH + 1 + 7 + 1 + 8 + 1):
353
354
The space usage is therefore:
355
BAR_WIDTH + 1 + 7 + 1 + 8 + 1 + the file name length
356
"""
- term_width, _height = click.get_terminal_size()
357
+ term_width, _height = shutil.get_terminal_size()
358
max_filename_length = term_width - used_width
359
return max_filename_length
360
0 commit comments