fix(terminal): set vt fg & bg colors from theme

This commit is contained in:
CJ van den Berg 2026-04-10 21:35:33 +02:00
parent e01d9c13b7
commit b1cc9193fe
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -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);
}