From f4aca7c4a2c837f3c1c324583b0157ddf73f1d37 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 24 Dec 2009 04:02:13 +0000 Subject: [PATCH] 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. (trunk r15129) svn path=/main/branches/2.1.7/; revision=15141 --- pym/_emerge/JobStatusDisplay.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.26.2