mirror of https://github.com/docker/compose.git
Merge pull request #3423 from cmihai/fix-1876
Ignore error output of `stty size` when standard input is not a termi…
This commit is contained in:
commit
9efb00457d
|
@ -11,7 +11,7 @@ from compose.cli import colors
|
|||
|
||||
|
||||
def get_tty_width():
|
||||
tty_size = os.popen('stty size', 'r').read().split()
|
||||
tty_size = os.popen('stty size 2> /dev/null', 'r').read().split()
|
||||
if len(tty_size) != 2:
|
||||
return 0
|
||||
_, width = tty_size
|
||||
|
|
Loading…
Reference in New Issue