From 416950a4478116b98b6238543e44a7764c159447 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Thu, 21 Dec 2023 13:31:18 -0600 Subject: [PATCH] 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. --- src/terminfo/ghostty.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminfo/ghostty.zig b/src/terminfo/ghostty.zig index 92eb8bea1..44f731b12 100644 --- a/src/terminfo/ghostty.zig +++ b/src/terminfo/ghostty.zig @@ -135,11 +135,11 @@ pub const ghostty: Source = .{ // Secondary device attributes request / response .{ .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 .{ .name = "XR", .value = .{ .string = "\\E[>0q" } }, - .{ .name = "xr", .value = .{ .string = "\\EP>\\|[ -~]+a\\E\\\\" } }, + .{ .name = "xr", .value = .{ .string = "\\EP>\\\\|[ -~]+a\\E\\\\" } }, // DECSLRM (Left/Right Margins) .{ .name = "Enmg", .value = .{ .string = "\\E[?69h" } },