Comment 2 for bug 956202

Revision history for this message
Dan Prince (dan-prince) wrote :

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