diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-20 19:59:39 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-20 19:59:39 +0000 |
commit | af97b15206cec1d85cee049cbd34b45feefd3fe7 (patch) | |
tree | d4520a7e7abfb75a869b74f02fe9eebac7d87c18 /pym/output.py | |
parent | 81c91c45eeddfce7bdd5e346a636b0a29ac5fcfd (diff) | |
download | portage-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
Diffstat (limited to 'pym/output.py')
-rw-r--r-- | pym/output.py | 2 |
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 |