feat(win32 gui): send terminal background updates to gui

This commit is contained in:
CJ van den Berg 2025-01-07 10:31:17 +01:00
parent 388943e33c
commit 4c73948068
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 7 additions and 6 deletions

View file

@ -331,12 +331,7 @@ fn set_terminal_title_internal(self: *Self) void {
pub fn set_terminal_style(self: *Self, style_: Style) void {
_ = self;
_ = style_;
std.log.warn("TODO: implement set_terminal_style", .{});
//if (style_.fg) |color|
//self.vx.setTerminalForegroundColor(self.tty.anyWriter(), vaxis.Cell.Color.rgbFromUint(@intCast(color.color)).rgb) catch {};
//if (style_.bg) |color|
//self.vx.setTerminalBackgroundColor(self.tty.anyWriter(), vaxis.Cell.Color.rgbFromUint(@intCast(color.color)).rgb) catch {};
if (style_.bg) |color| gui.set_window_background(@intCast(color.color));
}
pub fn set_terminal_cursor_color(self: *Self, color: Color) void {