1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00

Change 'subprocess.check_call' to 'subprocess.check_output' in ''utils.output'

This commit is contained in:
dalgr 2017-10-10 20:58:46 +01:00 committed by Johan Andersson
parent 59d2513dee
commit 328ad0cff9

View File

@ -51,8 +51,8 @@ def _get_terminal_size_tput():
# get terminal width
# src: http://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window
try:
cols = int(subprocess.check_call(shlex.split('tput cols')))
rows = int(subprocess.check_call(shlex.split('tput lines')))
cols = int(subprocess.check_output(shlex.split('tput cols')))
rows = int(subprocess.check_output(shlex.split('tput lines')))
return (cols, rows)
except:
pass