core: separate default colors from modifiable colors

Default colors are those set by the user in the config file, or an
actual default value if unset. The actual colors are modifiable and can
be changed using the OSC 4, 10, and 11 sequences.
This commit is contained in:
Gregory Anders
2023-11-09 14:08:14 -06:00
parent 49feaedef6
commit 1c0b79c40f
5 changed files with 94 additions and 63 deletions

View File

@@ -263,11 +263,11 @@ fn drainMailbox(self: *Thread) !void {
},
.foreground_color => |color| {
self.renderer.config.foreground = color;
self.renderer.foreground_color = color;
},
.background_color => |color| {
self.renderer.config.background = color;
self.renderer.background_color = color;
},
.resize => |v| {