0
0
Fork 0

[compat] Fix wrong lines/columns order

stty size is rows x columns
main
Sergey M․ 2015-10-06 22:02:28 +06:00
parent 86be82610c
commit f2dbc54066
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ else:
['stty', 'size'], ['stty', 'size'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = sp.communicate() out, err = sp.communicate()
_columns, _lines = map(int, out.split()) _lines, _columns = map(int, out.split())
except Exception: except Exception:
_columns, _lines = _terminal_size(*fallback) _columns, _lines = _terminal_size(*fallback)