support mouse alt scroll (mode 1007)

This enables less and other older legacy programs to get mouse scroll
events
This commit is contained in:
Mitchell Hashimoto
2023-03-17 19:10:08 -07:00
parent 8b9a1d8530
commit 1b88f7e9ab
4 changed files with 33 additions and 1 deletions

View File

@@ -101,6 +101,10 @@ pub const Mode = enum(u16) {
/// Report mouse position in the SGR format.
mouse_format_sgr = 1006,
/// Report mouse scroll events as cursor up/down keys. Any other mouse
/// mode overrides this.
mouse_alternate_scroll = 1007,
/// Report mouse position in the urxvt format.
mouse_format_urxvt = 1015,