aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2021-02-26 21:23:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-26 14:15:05 +0000
commit80b95eeb7e66e287a214ca61f765b7da78f2bc2c (patch)
treef73d5da662b6677b4c2b29ffee5e8fc6acb482b9 /config.c
parentgrid: snapshot: don’t mark all cells as dirty - copy state from source grid (diff)
config: reuse HAVE_TERMINFO via DEFAULT_TERM
add detection in --help output also make it more easily accessible for other locations to change
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/config.c b/config.c
index c0b305cf..b225de46 100644
--- a/config.c
+++ b/config.c
@@ -2158,11 +2158,7 @@ config_load(struct config *conf, const char *conf_path,
bool ret = false;
*conf = (struct config) {
-#ifdef HAVE_TERMINFO
- .term = xstrdup("foot"),
-#else
- .term = xstrdup("xterm-256color"),
-#endif
+ .term = xstrdup(DEFAULT_TERM),
.shell = get_shell(),
.title = xstrdup("foot"),
.app_id = xstrdup("foot"),