mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
terminfo: add mouse entries, correct kmouse
Add entries for XM and xm, these tell certain applications how to enable mouse and the format of response they will receive. Fix 'kmous' entry to match standard terminfo files.
This commit is contained in:
@ -123,6 +123,10 @@ pub const ghostty: Source = .{
|
|||||||
.{ .name = "PS", .value = .{ .string = "\\E[200~" } },
|
.{ .name = "PS", .value = .{ .string = "\\E[200~" } },
|
||||||
.{ .name = "PE", .value = .{ .string = "\\E[201~" } },
|
.{ .name = "PE", .value = .{ .string = "\\E[201~" } },
|
||||||
|
|
||||||
|
// Mouse
|
||||||
|
.{ .name = "XM", .value = .{ .string = "\\E[?1006;1004;1000%?%p1%{1}%=%th%el%;" } },
|
||||||
|
.{ .name = "xm", .value = .{ .string = "\\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;" } },
|
||||||
|
|
||||||
// These are all capabilities that should be pretty straightforward
|
// These are all capabilities that should be pretty straightforward
|
||||||
// and map to input sequences.
|
// and map to input sequences.
|
||||||
.{ .name = "bel", .value = .{ .string = "^G" } },
|
.{ .name = "bel", .value = .{ .string = "^G" } },
|
||||||
@ -346,7 +350,7 @@ pub const ghostty: Source = .{
|
|||||||
.{ .name = "khome", .value = .{ .string = "\\EOH" } },
|
.{ .name = "khome", .value = .{ .string = "\\EOH" } },
|
||||||
.{ .name = "kich1", .value = .{ .string = "\\E[2~" } },
|
.{ .name = "kich1", .value = .{ .string = "\\E[2~" } },
|
||||||
.{ .name = "kind", .value = .{ .string = "\\E[1;2B" } },
|
.{ .name = "kind", .value = .{ .string = "\\E[1;2B" } },
|
||||||
.{ .name = "kmous", .value = .{ .string = "\\E[M" } },
|
.{ .name = "kmous", .value = .{ .string = "\\E[<" } },
|
||||||
.{ .name = "knp", .value = .{ .string = "\\E[6~" } },
|
.{ .name = "knp", .value = .{ .string = "\\E[6~" } },
|
||||||
.{ .name = "kpp", .value = .{ .string = "\\E[5~" } },
|
.{ .name = "kpp", .value = .{ .string = "\\E[5~" } },
|
||||||
.{ .name = "kri", .value = .{ .string = "\\E[1;2A" } },
|
.{ .name = "kri", .value = .{ .string = "\\E[1;2A" } },
|
||||||
|
Reference in New Issue
Block a user