From: Zac Medico Date: Tue, 20 Nov 2007 19:59:39 +0000 (-0000) Subject: Tweak EOutput.term_columns calculation for TERM="dumb" so X-Git-Tag: v2.1.4~275 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af97b15206cec1d85cee049cbd34b45feefd3fe7;p=portage.git Tweak EOutput.term_columns calculation for TERM="dumb" so that it behaves like TERM="cons25" currently does. Thanks to Ulrich Mueller for the patch. (trunk r8468) svn path=/main/branches/2.1.2/; revision=8548 --- 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