diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-02 17:23:44 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-02 17:23:44 +0000 |
commit | f40175fcbd5a83735af0e0feee24f648478658eb (patch) | |
tree | 499ad032991ff32f67569aaf1c97d1fbebbe6746 /pym | |
parent | 9496d984684b67ca217d1afe82f1ffdaf447415d (diff) | |
download | portage-f40175fcbd5a83735af0e0feee24f648478658eb.tar.gz portage-f40175fcbd5a83735af0e0feee24f648478658eb.tar.bz2 portage-f40175fcbd5a83735af0e0feee24f648478658eb.zip |
Fix eend so that it works properly on a standard BSD console. Thanks to UberLord. (trunk r6466:6467)
svn path=/main/branches/2.1.2/; revision=6468
Diffstat (limited to 'pym')
-rw-r--r-- | pym/output.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/output.py b/pym/output.py index 660f06999..8c8813e42 100644 --- a/pym/output.py +++ b/pym/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): |