diff options
author | nicm <nicm> | 2021-07-14 08:56:00 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-07-14 08:56:00 +0000 |
commit | 732c72c98e9b3aa6b1d33f1eab9fa16874d92e7d (patch) | |
tree | 2b44ffa46ba58750d7bbe3886133cbce08665763 | |
parent | 38c5788232e0e3abdd08ade55a9d4fbcda637df1 (diff) |
Move default value for TERM into tmux.h.
-rw-r--r-- | options-table.c | 2 | ||||
-rw-r--r-- | tmux.h | 3 |
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." }, @@ -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 |