projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd1eb50
)
For bug #182571, handle curses.error if it's thrown inside get_term_size().
author
Zac Medico
<zmedico@gentoo.org>
Tue, 19 Jun 2007 19:56:49 +0000
(19:56 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 19 Jun 2007 19:56:49 +0000
(19:56 -0000)
svn path=/main/trunk/; revision=6873
pym/portage/output.py
patch
|
blob
|
history
diff --git
a/pym/portage/output.py
b/pym/portage/output.py
index a2ed22dc3be53617043c7feaad653712dd700db9..bb355f6d7742c5512cd821a5b58206f776608e4e 100644
(file)
--- a/
pym/portage/output.py
+++ b/
pym/portage/output.py
@@
-258,8
+258,11
@@
def get_term_size():
"""
try:
import curses
- curses.setupterm()
- return curses.tigetnum('lines'), curses.tigetnum('cols')
+ try:
+ curses.setupterm()
+ return curses.tigetnum('lines'), curses.tigetnum('cols')
+ except curses.error:
+ pass
except ImportError:
pass
st, out = commands.getstatusoutput('stty size')