mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-04 01:40:21 -05:00
config: reuse HAVE_TERMINFO via DEFAULT_TERM
add detection in --help output also make it more easily accessible for other locations to change
This commit is contained in:
parent
792202bf29
commit
80b95eeb7e
3 changed files with 9 additions and 7 deletions
6
config.c
6
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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue