From bb1f5908f8ba737d0bccdc777b99aec2099f7d5f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 5 Aug 2026 14:27:21 -0700 Subject: [PATCH] terminfo: advertise overline support #12885 Ghostty already implements SGR 53 and 55, but its terminfo description does not expose the corresponding Smol and Rmol capabilities. Add both entries so the advertised capabilities match the renderer. --- src/terminfo/ghostty.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/terminfo/ghostty.zig b/src/terminfo/ghostty.zig index 5788170e9..2b7434cbf 100644 --- a/src/terminfo/ghostty.zig +++ b/src/terminfo/ghostty.zig @@ -106,6 +106,10 @@ pub const ghostty: Source = .{ // Curly, dashed, etc underlines .{ .name = "Smulx", .value = .{ .string = "\\E[4:%p1%dm" } }, + // Overline + .{ .name = "Smol", .value = .{ .string = "\\E[53m" } }, + .{ .name = "Rmol", .value = .{ .string = "\\E[55m" } }, + // Colored underlines .{ .name = "Setulc", .value = .{ .string = "\\E[58:2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d%;m" } },