From af31caeec87ea2d85e3dfb0976f0b752ad5cb29a Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 8 Nov 2007 22:39:42 +0000 Subject: [PATCH] Merged from trunk 8467:8468 | 8468 | Tweak EOutput.term_columns calculation for TERM="dumb" so | | zmedico | that it behaves like TERM="cons25" currently does. Thanks to | | | Ulrich Mueller for the patch. | svn path=/main/branches/prefix/; revision=8470 --- 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