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.
1 parent a78d440 commit 6b00341Copy full SHA for 6b00341
seleniumbase/fixtures/shared_utils.py
@@ -41,16 +41,11 @@ def get_terminal_width():
41
width = os.get_terminal_size().columns
42
except Exception:
43
try:
44
- if is_windows():
45
- raise Exception("Don't even try 'tput cols' on Windows!")
46
- width = int(subprocess.check_output(["tput", "cols"]))
47
- except Exception:
48
- try:
49
- import shutil
+ import shutil
50
51
- width = shutil.get_terminal_size((80, 20)).columns
52
53
- pass
+ width = shutil.get_terminal_size((80, 20)).columns
+ except Exception:
+ pass
54
return width
55
56
0 commit comments