From eb89f7f98b1b8edd569bff0fbbc2e88d4266c0ee Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Fri, 21 Feb 2025 12:19:38 +0100 Subject: [PATCH] fix(renderer): reset color after each cell write --- src/style.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/style.zig b/src/style.zig index c173e80..7225b57 100644 --- a/src/style.zig +++ b/src/style.zig @@ -66,6 +66,7 @@ pub fn value(this: Style, writer: anytype, cp: u21) !void { try std.fmt.format(writer, "m", .{}); // content try std.fmt.format(writer, "{s}", .{buffer}); + try std.fmt.format(writer, "\x1b[0m", .{}); } // TODO: implement helper functions for terminal capabilities: