terminfo: add entries for focus reporting

These sequences have been used "informally" forever, and until recently
mode 1004 was included in Xterm's XM (enable mouse reporting) sequence.
But as of ncurses 6.4 patch 20231028, focus reporting mode is removed
from XM and added to new fe and fd capabilities. Xterm also includes
definitions for the actual focus events ("kxIN" and "kxOUT"), so include
those too.
This commit is contained in:
Gregory Anders
2023-11-08 14:51:54 -06:00
parent 244cc6b457
commit 1aef1f0049

View File

@ -151,6 +151,12 @@ pub const ghostty: Source = .{
.{ .name = "clear", .value = .{ .string = "\\E[H\\E[2J" } },
.{ .name = "E3", .value = .{ .string = "\\E[3J" } },
// Focus reporting. Introduced in ncurses 6.4-20231028
.{ .name = "fe", .value = .{ .string = "\\E[?1004h" } },
.{ .name = "fd", .value = .{ .string = "\\E[?1004l" } },
.{ .name = "kxIN", .value = .{ .string = "\\E[I" } },
.{ .name = "kxOUT", .value = .{ .string = "\\E[O" } },
// These are all capabilities that should be pretty straightforward
// and map to input sequences.
.{ .name = "bel", .value = .{ .string = "^G" } },