Tweak EOutput.term_columns calculation for TERM="dumb" so
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 19:59:39 +0000 (19:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 19:59:39 +0000 (19:59 -0000)
that it behaves like TERM="cons25" currently does. Thanks
to Ulrich Mueller <ulm@gentoo.org> for the patch.
(trunk r8468)

svn path=/main/branches/2.1.2/; revision=8548

pym/output.py

index f59609ee7f44d9652a97f307db92b5471a8f4211..1e29c5dec576076bd41734152aa2da2968f96422 100644 (file)
@@ -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