summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-20 19:59:39 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-20 19:59:39 +0000
commitaf97b15206cec1d85cee049cbd34b45feefd3fe7 (patch)
treed4520a7e7abfb75a869b74f02fe9eebac7d87c18
parent81c91c45eeddfce7bdd5e346a636b0a29ac5fcfd (diff)
downloadportage-af97b15206cec1d85cee049cbd34b45feefd3fe7.tar.gz
portage-af97b15206cec1d85cee049cbd34b45feefd3fe7.tar.bz2
portage-af97b15206cec1d85cee049cbd34b45feefd3fe7.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. (trunk r8468) svn path=/main/branches/2.1.2/; revision=8548
-rw-r--r--pym/output.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/output.py b/pym/output.py
index f59609ee7..1e29c5dec 100644
--- a/pym/output.py
+++ b/pym/output.py
@@ -377,7 +377,7 @@ class EOutput:
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