aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-01-19 14:22:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-23 08:52:42 +0000
commit15f2bebdcb972c26fed6070ef03cefebadaa593b (patch)
treeccef6a0bdacfe7e09f994f155ce38c01c4fc42bd /config.c
parentmeson: depend on wayland-client when using wayland-protocols (diff)
meson: optionalize terminfo dependency
ncurses on FreeBSD still uses termcap(5) while foot works fine with xterm-256color sans status line and visible bell. Having more than one ncurses version installed may break other applications. Document -Dterminfo=false uses --term=xterm-256color by default
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.c b/config.c
index 5956a516..da55f8f8 100644
--- a/config.c
+++ b/config.c
@@ -2042,7 +2042,11 @@ 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
.shell = get_shell(),
.title = xstrdup("foot"),
.app_id = xstrdup("foot"),