From 0d2bfacd5b1c86752b9438d6e40c70df36b5ccab Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 10 Oct 2023 15:59:24 -0700 Subject: [PATCH] terminfo: add left/right margin entries --- src/terminfo/ghostty.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/terminfo/ghostty.zig b/src/terminfo/ghostty.zig index ff187ad3c..119bae399 100644 --- a/src/terminfo/ghostty.zig +++ b/src/terminfo/ghostty.zig @@ -141,6 +141,12 @@ pub const ghostty: Source = .{ .{ .name = "XR", .value = .{ .string = "\\E[>0q" } }, .{ .name = "xr", .value = .{ .string = "\\EP>\\|[ -~]+a\\E\\\\" } }, + // DECSLRM (Left/Right Margins) + .{ .name = "Enmg", .value = .{ .string = "\\E[?69h" } }, + .{ .name = "Dsmg", .value = .{ .string = "\\E[?69l" } }, + .{ .name = "Clmg", .value = .{ .string = "\\E[s" } }, + .{ .name = "Cmg", .value = .{ .string = "\\E[%i%p1%d;%p2%ds" } }, + // These are all capabilities that should be pretty straightforward // and map to input sequences. .{ .name = "bel", .value = .{ .string = "^G" } },