From 74207d91c2e0f71360578ec702f91971dc5895e0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 8 Nov 2007 22:36:32 +0000 Subject: [PATCH] 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 --- pym/portage/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2