From: Zac Medico Date: Thu, 8 Nov 2007 22:36:32 +0000 (-0000) Subject: Tweak EOutput.term_columns calculation for TERM="dumb" so X-Git-Tag: v2.2_pre1~422 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74207d91c2e0f71360578ec702f91971dc5895e0;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. svn path=/main/trunk/; revision=8468 --- 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