feat(win32 gui): send terminal background updates to gui
This commit is contained in:
parent
388943e33c
commit
4c73948068
2 changed files with 7 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue