summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2021-07-14 08:56:00 +0000
committernicm <nicm>2021-07-14 08:56:00 +0000
commit732c72c98e9b3aa6b1d33f1eab9fa16874d92e7d (patch)
tree2b44ffa46ba58750d7bbe3886133cbce08665763
parent38c5788232e0e3abdd08ade55a9d4fbcda637df1 (diff)
Move default value for TERM into tmux.h.
-rw-r--r--options-table.c2
-rw-r--r--tmux.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/options-table.c b/options-table.c
index da1d8776..9f122071 100644
--- a/options-table.c
+++ b/options-table.c
@@ -234,7 +234,7 @@ const struct options_table_entry options_table[] = {
{ .name = "default-terminal",
.type = OPTIONS_TABLE_STRING,
.scope = OPTIONS_TABLE_SERVER,
- .default_str = "screen",
+ .default_str = TMUX_TERM,
.text = "Default for the 'TERM' environment variable."
},
diff --git a/tmux.h b/tmux.h
index 917f4528..deb66292 100644
--- a/tmux.h
+++ b/tmux.h
@@ -74,6 +74,9 @@ struct winlink;
#ifndef TMUX_SOCK
#define TMUX_SOCK "$TMUX_TMPDIR:" _PATH_TMP
#endif
+#ifndef TMUX_TERM
+#define TMUX_TERM "screen"
+#endif
/* Minimum layout cell size, NOT including border lines. */
#define PANE_MINIMUM 1