terminfo: add Setulc string for colored underlines

Add terminfo key 'Setulc' to enable colored underlines.
This commit is contained in:
Tim Culverhouse
2023-09-25 15:54:03 -05:00
parent e1d66da1b6
commit da6dfbbf3d

View File

@ -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" } },