tmc: use $termprog to identify 9term - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f5ae255cc3dbe7823cf2fdc3c2c94c363c5932a4
(DIR) parent 32c6e78c6c4c13b63d8dc30aa395cfcc6e686c0a
(HTM) 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:
M src/cmd/draw/mc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/draw/mc.c b/src/cmd/draw/mc.c
t@@ -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);