From: Sergey M․ Date: Tue, 6 Oct 2015 16:02:28 +0000 (+0600) Subject: [compat] Fix wrong lines/columns order X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=f2dbc54066f56a98c689099b920e6a596d4ffdfc;p=youtube-dl [compat] Fix wrong lines/columns order stty size is rows x columns --- diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index 1ba4ab78c..192e1c515 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -434,7 +434,7 @@ else: ['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)