From b7139da103c309d3fd28a4fab1f505ec3c6e1426 Mon Sep 17 00:00:00 2001 From: utox39 Date: Mon, 10 Mar 2025 16:16:55 +0100 Subject: [PATCH] feat(macos): add terminal info --- src/macos/macos.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/macos/macos.zig b/src/macos/macos.zig index 41ca5f1..c5f80eb 100644 --- a/src/macos/macos.zig +++ b/src/macos/macos.zig @@ -277,3 +277,8 @@ pub fn getDiskSize(disk_path: []const u8) !DiskInfo { .disk_usage_percentage = @as(u8, @intCast(used_size_percentage)), }; } + +pub fn getTerminalName(allocator: std.mem.Allocator) ![]u8 { + const term_progrm = try std.process.getEnvVarOwned(allocator, "TERM_PROGRAM"); + return term_progrm; +}