commit cfa9a6dfa108cda8f830dac649c804161bbde618 from: Martin Kühl via: David du Colombier <0intro@gmail.com> date: Fri Mar 23 09:41:43 2018 UTC 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. commit - 112744e54bfdab025bd2146457f41f1f8f4a903b commit + cfa9a6dfa108cda8f830dac649c804161bbde618 blob - 5e6e1119420765c75f0cd3f02258def2901e15bc blob + 141b9b005475cb8bdb92a71a35534365d6f07424 --- src/cmd/9term/rcstart.c +++ 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){