From af97b15206cec1d85cee049cbd34b45feefd3fe7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 20 Nov 2007 19:59:39 +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. (trunk r8468) svn path=/main/branches/2.1.2/; revision=8548 --- pym/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/output.py b/pym/output.py index f59609ee7..1e29c5dec 100644 --- a/pym/output.py +++ b/pym/output.py @@ -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 -- 2.26.2