fix: avoid setting the terminal background color until we know what the system color scheme is
This was in the hope that it might fix kitty's behavior with enable_terminal_color_scheme enabled. Unfortunately it makes no difference to kitty (kitty stops sending color scheme updates). I am commiting these changes anyway as it seems a little cleaner to avoid setting the background color twice on startup.
This commit is contained in:
parent
f99e10652c
commit
11d6770913
2 changed files with 11 additions and 1 deletions
|
|
@ -385,6 +385,8 @@ pub fn process_renderer_event(self: *Self, msg: []const u8) Error!void {
|
|||
self.queries_done = true;
|
||||
self.vx.enableDetectedFeatures(self.tty.writer()) catch |e| self.logger.err("enable features", e);
|
||||
self.vx.setMouseMode(self.tty.writer(), true) catch return error.TtyWriteError;
|
||||
self.logger.print("capability queries complete", .{});
|
||||
if (self.dispatch_event) |f| f(self.handler_ctx, try self.fmtmsg(.{"capability_detection_complete"}));
|
||||
},
|
||||
.cap_kitty_keyboard => {
|
||||
self.logger.print("kitty keyboard capability detected", .{});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue