commit f5ae255cc3dbe7823cf2fdc3c2c94c363c5932a4
parent 32c6e78c6c4c13b63d8dc30aa395cfcc6e686c0a
Author: Russ Cox <rsc@swtch.com>
Date: Wed, 9 Jul 2014 10:26:09 -0400
mc: use $termprog to identify 9term
TBR=rsc
https://codereview.appspot.com/112890043
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/draw/mc.c b/src/cmd/draw/mc.c
@@ -297,7 +297,7 @@ getwidth(void)
return;
}
- if((p = getenv("TERM")) != nil && strcmp(p, "9term") == 0)
+ if((p = getenv("termprog")) != nil && strcmp(p, "9term") == 0)
if((p = getenv("font")) != nil)
font = openfont(nil, p);