terminfo: add support for SGR dim

This PR implements the fix discussed in
https://github.com/ghostty-org/ghostty/discussions/11128
This commit is contained in:
Riccardo Mazzarini
2026-03-03 09:48:48 +01:00
parent 2502ca294e
commit 4ce782b63f

View File

@@ -220,7 +220,7 @@ pub const ghostty: Source = .{
.{ .name = "setaf", .value = .{ .string = "\\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m" } },
.{ .name = "setrgbb", .value = .{ .string = "\\E[48:2:%p1%d:%p2%d:%p3%dm" } },
.{ .name = "setrgbf", .value = .{ .string = "\\E[38:2:%p1%d:%p2%d:%p3%dm" } },
.{ .name = "sgr", .value = .{ .string = "%?%p9%t\\E(0%e\\E(B%;\\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m" } },
.{ .name = "sgr", .value = .{ .string = "%?%p9%t\\E(0%e\\E(B%;\\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m" } },
.{ .name = "sgr0", .value = .{ .string = "\\E(B\\E[m" } },
.{ .name = "sitm", .value = .{ .string = "\\E[3m" } },
.{ .name = "smacs", .value = .{ .string = "\\E(0" } },