From da6dfbbf3d56bb67c4f64cbc920a241b86769fc9 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 25 Sep 2023 15:54:03 -0500 Subject: [PATCH] terminfo: add Setulc string for colored underlines Add terminfo key 'Setulc' to enable colored underlines. --- src/terminfo/ghostty.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/terminfo/ghostty.zig b/src/terminfo/ghostty.zig index 23ff60208..42dd2fea7 100644 --- a/src/terminfo/ghostty.zig +++ b/src/terminfo/ghostty.zig @@ -95,6 +95,9 @@ pub const ghostty: Source = .{ // Curly, dashed, etc underlines .{ .name = "Smulx", .value = .{ .string = "\\E[4:%p1%dm" } }, + // Colored underlines + .{ .name = "Setulc", .value = .{ .string = "\\E[58:2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d%;m" } }, + // These are all capabilities that should be pretty straightforward // and map to input sequences. .{ .name = "bel", .value = .{ .string = "^G" } },