config: add mouse.alternate-scroll-mode option

This option controls the initial state of the Alternate Scroll Mode,
and defaults to ‘enabled’.
This commit is contained in:
Daniel Eklöf 2020-09-15 19:09:00 +02:00
parent 04c1bab7b0
commit f2497320c6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 31 additions and 0 deletions

View file

@ -964,6 +964,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
.grid = &term->normal,
.composed_count = 0,
.composed = NULL,
.alt_scrolling = conf->mouse.alternate_scroll_mode,
.meta = {
.esc_prefix = true,
.eight_bit = true,