0
0
Fork 0

Fix stty detection

main
Philipp Hagemeister 2011-08-25 00:08:59 +02:00
parent fe6dc08b79
commit eb0387a848
1 changed files with 1 additions and 1 deletions

View File

@ -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