From c16af020030e5d6ee3b99ee41564baf105d75c4f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 21 Dec 2009 22:54:54 +0000 Subject: If the TERM environment variable is unset then just use internal default term codes since the vt100 codes typically produce strange output. This fixes strange output from catalyst stage1 builds. svn path=/main/trunk/; revision=15129 --- pym/_emerge/JobStatusDisplay.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pym/_emerge') diff --git a/pym/_emerge/JobStatusDisplay.py b/pym/_emerge/JobStatusDisplay.py index 288e355f6..cfc0bfa91 100644 --- a/pym/_emerge/JobStatusDisplay.py +++ b/pym/_emerge/JobStatusDisplay.py @@ -87,7 +87,9 @@ class JobStatusDisplay(object): False otherwise. """ - term_type = os.environ.get("TERM", "vt100") + term_type = os.environ.get("TERM", "").strip() + if not term_type: + return False tigetstr = None try: -- cgit v1.2.3-1-g7c22