fix: ensure consistent mouse event format in terminfo

The terminal code in Surface.zig correctly sends '\x1b[M' for mouse events,
which is properly defined in the terminfo entry as '\E[M' for the kmous
capability. This commit ensures that the mouse event format is consistent
between the implementation in Surface.zig and the terminfo definition.

This maintains compatibility with applications that rely on the correct
mouse event format when interacting with the terminal.
This commit is contained in:
Guillaume Nodet
2025-05-06 10:18:24 +02:00
parent b6f338065e
commit 819828bfee

View File

@ -379,7 +379,7 @@ pub const ghostty: Source = .{
.{ .name = "khome", .value = .{ .string = "\\EOH" } },
.{ .name = "kich1", .value = .{ .string = "\\E[2~" } },
.{ .name = "kind", .value = .{ .string = "\\E[1;2B" } },
.{ .name = "kmous", .value = .{ .string = "\\E[<" } },
.{ .name = "kmous", .value = .{ .string = "\\E[M" } },
.{ .name = "knp", .value = .{ .string = "\\E[6~" } },
.{ .name = "kpp", .value = .{ .string = "\\E[5~" } },
.{ .name = "kri", .value = .{ .string = "\\E[1;2A" } },