feat: set terminal cursor color to match theme
This commit is contained in:
parent
4360390b89
commit
bf6e4f49b8
3 changed files with 10 additions and 3 deletions
|
@ -2,6 +2,7 @@ const std = @import("std");
|
|||
const cbor = @import("cbor");
|
||||
const log = @import("log");
|
||||
const Style = @import("theme").Style;
|
||||
const Color = @import("theme").Color;
|
||||
const vaxis = @import("vaxis");
|
||||
const builtin = @import("builtin");
|
||||
|
||||
|
@ -334,6 +335,10 @@ pub fn set_terminal_style(self: *Self, style_: Style) void {
|
|||
self.vx.setTerminalBackgroundColor(self.tty.anyWriter(), vaxis.Cell.Color.rgbFromUint(@intCast(color.color)).rgb) catch {};
|
||||
}
|
||||
|
||||
pub fn set_terminal_cursor_color(self: *Self, color: Color) void {
|
||||
self.vx.setTerminalCursorColor(self.tty.anyWriter(), vaxis.Cell.Color.rgbFromUint(@intCast(color.color)).rgb) catch {};
|
||||
}
|
||||
|
||||
pub fn set_terminal_working_directory(self: *Self, absolute_path: []const u8) void {
|
||||
self.vx.setTerminalWorkingDirectory(self.tty.anyWriter(), absolute_path) catch {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue