t9term: Set TERM_PROGRAM to termprog - 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 cfa9a6dfa108cda8f830dac649c804161bbde618
(DIR) parent 112744e54bfdab025bd2146457f41f1f8f4a903b
(HTM) Author: Martin Kühl <martin.kuehl@gmail.com>
Date: Wed, 28 Feb 2018 11:10:46 +0100
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.
Diffstat:
M src/cmd/9term/rcstart.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/src/cmd/9term/rcstart.c b/src/cmd/9term/rcstart.c
t@@ -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){