From d0b8bf77528562cb6ca5b72081fab152860a4b9b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 9 Oct 2023 09:23:39 -0700 Subject: [PATCH] terminal: enable alternate scroll mode by default Fixes #641 xterm does not so there is an argument to not doing this but a lot of other terminals do. Having this on by default makes things like less scroll with the mouse wheel by default which is nice to have. --- src/terminal/modes.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/modes.zig b/src/terminal/modes.zig index 1605e1fd6..983f2e451 100644 --- a/src/terminal/modes.zig +++ b/src/terminal/modes.zig @@ -165,7 +165,7 @@ const entries: []const ModeEntry = &.{ .{ .name = "focus_event", .value = 1004 }, .{ .name = "mouse_format_utf8", .value = 1005 }, .{ .name = "mouse_format_sgr", .value = 1006 }, - .{ .name = "mouse_alternate_scroll", .value = 1007 }, + .{ .name = "mouse_alternate_scroll", .value = 1007, .default = true }, .{ .name = "mouse_format_urxvt", .value = 1015 }, .{ .name = "mouse_format_sgr_pixels", .value = 1016 }, .{ .name = "alt_esc_prefix", .value = 1036, .default = true },