mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[compat] Fix wrong lines/columns order
stty size is rows x columns
This commit is contained in:
parent
86be82610c
commit
f2dbc54066
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ def compat_get_terminal_size(fallback=(80, 24)):
|
|||
['stty', 'size'],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
out, err = sp.communicate()
|
||||
_columns, _lines = map(int, out.split())
|
||||
_lines, _columns = map(int, out.split())
|
||||
except Exception:
|
||||
_columns, _lines = _terminal_size(*fallback)
|
||||
|
||||
|
|
Loading…
Reference in a new issue