From a3d919a90d38623f743ac997f1db2de3204faaf5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 20 Jan 2020 18:38:50 +0100 Subject: input: implement metaSendsEscape and eightBitMeta --- terminal.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index be8d8e56..63e4266e 100644 --- a/terminal.c +++ b/terminal.c @@ -652,6 +652,10 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl, .normal = {.damage = tll_init(), .scroll_damage = tll_init()}, .alt = {.damage = tll_init(), .scroll_damage = tll_init()}, .grid = &term->normal, + .meta = { + .esc_prefix = true, + .eight_bit = true, + }, .tab_stops = tll_init(), .wl = wayl, .render = { @@ -1032,6 +1036,9 @@ term_reset(struct terminal *term, bool hard) selection_cancel(term); } + term->meta.esc_prefix = true; + term->meta.eight_bit = true; + if (!hard) return; -- cgit v1.3