summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-02 17:23:13 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-02 17:23:13 +0000
commit09aef544dd776f7b63d4d930a94993bd07297c6d (patch)
tree0f875aa0b2436b638a429252ba12a953bbcd3173 /pym
parentcaf0b1e031a0515f42147184362e76e0767c478d (diff)
downloadportage-09aef544dd776f7b63d4d930a94993bd07297c6d.tar.gz
portage-09aef544dd776f7b63d4d930a94993bd07297c6d.tar.bz2
portage-09aef544dd776f7b63d4d930a94993bd07297c6d.zip
Fix eend so that it works properly on a standard BSD console. Thanks to UberLord.
svn path=/main/trunk/; revision=6467
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/output.py3
1 files changed, 3 insertions, 0 deletions
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):