From 28329761a714342c785c4b18492aa35532d764d8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 27 Sep 2023 14:30:27 -0700 Subject: [PATCH] terminfo: xtgettcap map name should use the source name --- src/terminfo/Source.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminfo/Source.zig b/src/terminfo/Source.zig index c28abff22..2190e0210 100644 --- a/src/terminfo/Source.zig +++ b/src/terminfo/Source.zig @@ -77,7 +77,7 @@ pub fn xtgettcapMap(comptime self: Source) type { var kvs: [len]KV = .{.{ "", "" }} ** len; // We first build all of our entries with raw K=V pairs. - kvs[0] = .{ "TN", "ghostty" }; + kvs[0] = .{ "TN", self.names[0] }; kvs[1] = .{ "Co", "256" }; kvs[2] = .{ "RGB", "8" }; for (self.capabilities, 3..) |cap, i| {