mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-05 12:57:50 +00:00
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:
@@ -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" } },
|
||||
|
||||
Reference in New Issue
Block a user