From 80b95eeb7e66e287a214ca61f765b7da78f2bc2c Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Fri, 26 Feb 2021 16:23:43 -0500 Subject: config: reuse HAVE_TERMINFO via DEFAULT_TERM add detection in --help output also make it more easily accessible for other locations to change --- config.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'config.c') 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"), -- cgit v1.3