From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6CDDC13800E for ; Fri, 27 Jul 2012 22:23:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DDF60E062D; Fri, 27 Jul 2012 22:23:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A930DE062D for ; Fri, 27 Jul 2012 22:23:00 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 17DE61B4065 for ; Fri, 27 Jul 2012 22:23:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id CBDD8E5436 for ; Fri, 27 Jul 2012 22:22:58 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1343427767.eb828d037bb400f11d0b18a75f7c9ab0559ff737.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/output.py X-VCS-Directories: pym/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: eb828d037bb400f11d0b18a75f7c9ab0559ff737 X-VCS-Branch: master Date: Fri, 27 Jul 2012 22:22:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a4122736-3005-4e44-8e5f-325db9bda872 X-Archives-Hash: 6d0e3b21d5046c3f98fd2c8db16934f9 commit: eb828d037bb400f11d0b18a75f7c9ab0559ff737 Author: Zac Medico gentoo org> AuthorDate: Fri Jul 27 22:22:47 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Jul 27 22:22:47 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=eb828d03 get_term_size: pass fd to curses.setupterm() --- pym/portage/output.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/pym/portage/output.py b/pym/portage/output.py index da94377..4642a28 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -441,7 +441,8 @@ def get_term_size(fd=None): try: import curses try: - curses.setupterm() + curses.setupterm(term=os.environ.get("TERM", "unknown"), + fd=fd.fileno()) return curses.tigetnum('lines'), curses.tigetnum('cols') except curses.error: pass