Move default value for TERM into tmux.h.

This commit is contained in:
nicm 2021-07-14 08:56:00 +00:00
parent 38c5788232
commit 732c72c98e
2 changed files with 4 additions and 1 deletions

View File

@ -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."
},

3
tmux.h
View File

@ -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