From b1cc9193fe9a7f29da91a1df36ecc0301ce9dfdf Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Fri, 10 Apr 2026 21:35:33 +0200 Subject: [PATCH] fix(terminal): set vt fg & bg colors from theme --- src/tui/terminal_view.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tui/terminal_view.zig b/src/tui/terminal_view.zig index 1570f899..ee5476f7 100644 --- a/src/tui/terminal_view.zig +++ b/src/tui/terminal_view.zig @@ -537,6 +537,10 @@ const Vt = struct { &self.write_buf, ); + const theme = tui.active_theme(); + if (theme.editor.fg) |fg| self.vt.fg_color = color.u24_to_u8s(fg.color); + if (theme.editor.bg) |bg| self.vt.bg_color = color.u24_to_u8s(bg.color); + try self.vt.spawn(); self.pty_pid = try pty.spawn(allocator, &self.vt); }