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 00f2065 + bbd54e1 commit a389633Copy full SHA for a389633
src/options.py
@@ -61,6 +61,8 @@ def _remove_negative_k(k):
61
62
63
def _tty_width():
64
+ if not hasattr(sys.stderr, "fileno"):
65
+ return _atoi(os.environ.get('WIDTH')) or 70
66
s = struct.pack("HHHH", 0, 0, 0, 0)
67
try:
68
import fcntl
0 commit comments