mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-21 19:03:02 +08:00
Fix stty detection
This commit is contained in:
parent
fe6dc08b79
commit
eb0387a848
@ -2999,7 +2999,7 @@ def parseOpts():
|
|||||||
try:
|
try:
|
||||||
sp = subprocess.Popen(['stty', 'size'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
sp = subprocess.Popen(['stty', 'size'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
out,err = sp.communicate()
|
out,err = sp.communicate()
|
||||||
return out.split()[1]
|
return int(out.split()[1])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user