mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-07 05:43:20 +00:00
termio: update foreground and background color on config change
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user