From c77f0dc6fcf3b5f8bddd790ca2c623bc6f91f2cb Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 26 Sep 2023 06:42:42 -0500 Subject: [PATCH] terminfo: add cursor styles to terminfo Add Ss and Se definitions --- src/terminfo/ghostty.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/terminfo/ghostty.zig b/src/terminfo/ghostty.zig index 42dd2fea7..5c78a6eb1 100644 --- a/src/terminfo/ghostty.zig +++ b/src/terminfo/ghostty.zig @@ -98,6 +98,12 @@ pub const ghostty: Source = .{ // Colored underlines .{ .name = "Setulc", .value = .{ .string = "\\E[58:2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d%;m" } }, + // Cursor styles + .{ .name = "Ss", .value = .{ .string = "\\E[%p1%d q" } }, + + // Cursor style reset + .{ .name = "Se", .value = .{ .string = "\\E[2 q" } }, + // These are all capabilities that should be pretty straightforward // and map to input sequences. .{ .name = "bel", .value = .{ .string = "^G" } },