terminfo: fix xr and rv

Commit 5e473ebd ("terminfo: add additional entries, fix smkx/rmkx")
added entries `xr` and `rv`, but without proper escaping of the
backslashes. This commit adds the extras. Output of `infocmp` now
matches foot, kitty, et al.
This commit is contained in:
Tim Culverhouse
2023-12-21 13:31:18 -06:00
parent 19ca893e10
commit 416950a447

View File

@ -135,11 +135,11 @@ pub const ghostty: Source = .{
// Secondary device attributes request / response // Secondary device attributes request / response
.{ .name = "RV", .value = .{ .string = "\\E[>c" } }, .{ .name = "RV", .value = .{ .string = "\\E[>c" } },
.{ .name = "rv", .value = .{ .string = "\\E\\[[0-9]+;[0-9]+;[0-9]+c" } }, .{ .name = "rv", .value = .{ .string = "\\E\\\\[[0-9]+;[0-9]+;[0-9]+c" } },
// XTVERSION // XTVERSION
.{ .name = "XR", .value = .{ .string = "\\E[>0q" } }, .{ .name = "XR", .value = .{ .string = "\\E[>0q" } },
.{ .name = "xr", .value = .{ .string = "\\EP>\\|[ -~]+a\\E\\\\" } }, .{ .name = "xr", .value = .{ .string = "\\EP>\\\\|[ -~]+a\\E\\\\" } },
// DECSLRM (Left/Right Margins) // DECSLRM (Left/Right Margins)
.{ .name = "Enmg", .value = .{ .string = "\\E[?69h" } }, .{ .name = "Enmg", .value = .{ .string = "\\E[?69h" } },