From 09aef544dd776f7b63d4d930a94993bd07297c6d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 2 May 2007 17:23:13 +0000 Subject: Fix eend so that it works properly on a standard BSD console. Thanks to UberLord. svn path=/main/trunk/; revision=6467 --- pym/portage/output.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pym') diff --git a/pym/portage/output.py b/pym/portage/output.py index bbac9d97d..75e9aad42 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -277,6 +277,9 @@ class EOutput: pass if columns <= 0: columns = 80 + # Adjust columns so that eend works properly on a standard BSD console. + if os.environ.get("TERM") == "cons25": + columns = columns - 1 self.term_columns = columns def __eend(self, caller, errno, msg): -- cgit v1.2.3-1-g7c22