mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03: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_style = config.cursor_style;
|
||||||
self.default_cursor_blink = config.cursor_blink;
|
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 we have event data, then update our active stream too
|
||||||
if (self.data) |data| {
|
if (self.data) |data| {
|
||||||
data.terminal_stream.handler.changeDefaultCursor(
|
data.terminal_stream.handler.changeDefaultCursor(
|
||||||
|
Reference in New Issue
Block a user