From 732c72c98e9b3aa6b1d33f1eab9fa16874d92e7d Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 14 Jul 2021 08:56:00 +0000 Subject: Move default value for TERM into tmux.h. --- options-table.c | 2 +- tmux.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3