From cfa9a6dfa108cda8f830dac649c804161bbde618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20K=C3=BChl?= Date: Wed, 28 Feb 2018 11:10:46 +0100 Subject: 9term: Set TERM_PROGRAM to termprog TERM_PROGRAM is the customary way to identify which kind of terminal emulator program one uses on macOS. This change sets TERM_PROGRAM to termprog since both variables are used for the same purpose. --- src/cmd/9term/rcstart.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cmd/9term') diff --git a/src/cmd/9term/rcstart.c b/src/cmd/9term/rcstart.c index 5e6e1119..141b9b00 100644 --- a/src/cmd/9term/rcstart.c +++ b/src/cmd/9term/rcstart.c @@ -87,6 +87,7 @@ rcstart(int argc, char **argv, int *pfd, int *tfd) // Set $termprog to 9term or win for those who care about what kind of // dumb terminal this is. putenv("termprog", (char*)termprog); + putenv("TERM_PROGRAM", (char*)termprog); pid = fork(); switch(pid){ -- cgit v1.2.3