The issue seems to be that we just need a little error checking:
if not height_width:
try:
p = subprocess.Popen(['stty', 'size'], shell=False, stdout=subprocess.PIPE) result = p.communicate()
if p.returncode == 0: return tuple(int(x) for x in result[0].split())
except: pass
The issue seems to be that we just need a little error checking:
if not height_width: Popen([ 'stty', 'size'],
shell= False,
stdout= subprocess. PIPE)
result = p.communicate()
return tuple(int(x) for x in result[0].split())
pass
try:
p = subprocess.
if p.returncode == 0:
except: