projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86be826
)
[compat] Fix wrong lines/columns order
author
Sergey M․
<dstftw@gmail.com>
Tue, 6 Oct 2015 16:02:28 +0000
(22:02 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 6 Oct 2015 16:02:28 +0000
(22:02 +0600)
stty size is rows x columns
youtube_dl/compat.py
patch
|
blob
|
history
diff --git
a/youtube_dl/compat.py
b/youtube_dl/compat.py
index 1ba4ab78cc44af89f5ff528d0db979a8dff5f3b8..192e1c515e568b73e6bb5a42574fada4af511662 100644
(file)
--- 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, _line
s = map(int, out.split())
+ _
lines, _column
s = map(int, out.split())
except Exception:
_columns, _lines = _terminal_size(*fallback)