summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-08 22:36:32 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-08 22:36:32 +0000
commit74207d91c2e0f71360578ec702f91971dc5895e0 (patch)
tree567f700fba6348807a2058de00733611c9390b18
parent26fc1bc9c6f96dfa903477e2c1f40a1a6bd714e6 (diff)
downloadportage-74207d91c2e0f71360578ec702f91971dc5895e0.tar.gz
portage-74207d91c2e0f71360578ec702f91971dc5895e0.tar.bz2
portage-74207d91c2e0f71360578ec702f91971dc5895e0.zip
Tweak EOutput.term_columns calculation for TERM="dumb" so
that it behaves like TERM="cons25" currently does. Thanks to Ulrich Mueller <ulm@gentoo.org> for the patch. svn path=/main/trunk/; revision=8468
-rw-r--r--pym/portage/output.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py
index ff3e27171..9eae2ee87 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -382,7 +382,7 @@ class EOutput(object):
if columns <= 0:
columns = 80
# Adjust columns so that eend works properly on a standard BSD console.
- if os.environ.get("TERM") == "cons25":
+ if os.environ.get("TERM") in ("cons25", "dumb"):
columns = columns - 1
self.term_columns = columns