mc: use $termprog to identify 9term

TBR=rsc
https://codereview.appspot.com/112890043
This commit is contained in:
Russ Cox 2014-07-09 10:26:09 -04:00
parent 32c6e78c6c
commit f5ae255cc3

View file

@ -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);