aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term
diff options
context:
space:
mode:
authorMartin Kühl <martin.kuehl@gmail.com>2018-02-28 11:10:46 +0100
committerDavid du Colombier <0intro@gmail.com>2018-03-23 10:41:43 +0100
commitcfa9a6dfa108cda8f830dac649c804161bbde618 (patch)
tree3e540c1d4c507fe72f8b654f10bbeae365da61b1 /src/cmd/9term
parent112744e54bfdab025bd2146457f41f1f8f4a903b (diff)
downloadplan9port-cfa9a6dfa108cda8f830dac649c804161bbde618.tar.gz
plan9port-cfa9a6dfa108cda8f830dac649c804161bbde618.tar.bz2
plan9port-cfa9a6dfa108cda8f830dac649c804161bbde618.zip
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 (limited to 'src/cmd/9term')
-rw-r--r--src/cmd/9term/rcstart.c1
1 files changed, 1 insertions, 0 deletions
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){