mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
term: add capability to print warnings *inside* the terminal
This is intended to be used to print e.g. deprecation warnings inside the terminal, *before* the shell is started.
This commit is contained in:
parent
906c8f4d16
commit
b3d0215c38
6 changed files with 51 additions and 5 deletions
6
config.c
6
config.c
|
|
@ -1170,6 +1170,8 @@ config_load(struct config *conf, const char *conf_path)
|
|||
.delayed_render_upper_ns = 16666666 / 2, /* half a frame period (60Hz) */
|
||||
.max_shm_pool_size = 512 * 1024 * 1024,
|
||||
},
|
||||
|
||||
.warnings = tll_init(),
|
||||
};
|
||||
|
||||
struct config_key_binding_normal scrollback_up = {BIND_ACTION_SCROLLBACK_UP, strdup("Shift+Page_Up")};
|
||||
|
|
@ -1284,6 +1286,10 @@ config_free(struct config conf)
|
|||
tll_free(conf.bindings.key);
|
||||
tll_free(conf.bindings.mouse);
|
||||
tll_free(conf.bindings.search);
|
||||
|
||||
tll_foreach(conf.warnings, it)
|
||||
free(it->item.text);
|
||||
tll_free(conf.warnings);
|
||||
}
|
||||
|
||||
struct config_font
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue