From 4ce782b63f7348867cb6fd00695740b3970ec77a Mon Sep 17 00:00:00 2001 From: Riccardo Mazzarini Date: Tue, 3 Mar 2026 09:48:48 +0100 Subject: [PATCH] terminfo: add support for SGR dim This PR implements the fix discussed in https://github.com/ghostty-org/ghostty/discussions/11128 --- src/terminfo/ghostty.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminfo/ghostty.zig b/src/terminfo/ghostty.zig index 6451836e7..ca579147f 100644 --- a/src/terminfo/ghostty.zig +++ b/src/terminfo/ghostty.zig @@ -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" } },