fix(terminal): set vt fg & bg colors from theme
This commit is contained in:
parent
e01d9c13b7
commit
b1cc9193fe
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue