From 3b7e21df2675d40562b4ee90452acaec2031eb24 Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Thu, 9 Nov 2023 11:49:16 -0600 Subject: [PATCH] termio: update foreground and background color on config change --- src/termio/Exec.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index d342e02eb..5b0ef2a0c 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -328,6 +328,10 @@ pub fn changeConfig(self: *Exec, config: *DerivedConfig) !void { self.default_cursor_style = config.cursor_style; self.default_cursor_blink = config.cursor_blink; + // Update foreground and background colors + self.default_foreground_color = config.foreground.toTerminalRGB(); + self.default_background_color = config.background.toTerminalRGB(); + // If we have event data, then update our active stream too if (self.data) |data| { data.terminal_stream.handler.changeDefaultCursor(