Skip to content

Commit 5298f8b

Browse files
committed
redirect stty stderr to devnull
1 parent 6ac23ef commit 5298f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vsc/utils/generaloption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def set_columns(cols=None):
6767
if cols is None:
6868
if os.path.exists(STTY):
6969
try:
70-
proc = subprocess.run(['/usr/bin/stty', 'size'], stdout=subprocess.PIPE)
70+
proc = subprocess.run(['/usr/bin/stty', 'size'], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
7171
cols = str(proc.stdout.splitlines()[0].decode('utf-8').split(' ')[1])
7272
except (AttributeError, IndexError, OSError, ValueError):
7373
# do nothing

0 commit comments

Comments
 (0)