Tweak EOutput.term_columns calculation for TERM="dumb" so
authorZac Medico <zmedico@gentoo.org>
Thu, 8 Nov 2007 22:36:32 +0000 (22:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 8 Nov 2007 22:36:32 +0000 (22:36 -0000)
that it behaves like TERM="cons25" currently does. Thanks
to Ulrich Mueller <ulm@gentoo.org> for the patch.

svn path=/main/trunk/; revision=8468

pym/portage/output.py

index ff3e27171c06f44a8ec2543757223449453bbf24..9eae2ee87bb9e3a3ae92bc1ec5ed9b30da728063 100644 (file)
@@ -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