Merge branch 'master' into zig-0.15

This commit is contained in:
CJ van den Berg 2025-08-25 19:21:59 +02:00
commit 537464093a
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 10 additions and 3 deletions

View file

@ -247,7 +247,7 @@ pub fn process_renderer_event(self: *Self, msg: []const u8) Error!void {
const event = std.mem.bytesAsValue(vaxis.Event, input_);
switch (event.*) {
.key_press => |key__| {
// Check for a cursor position response for our explicity width query. This will
// Check for a cursor position response for our explicit width query. This will
// always be an F3 key with shift = true, and we must be looking for queries
if (key__.codepoint == vaxis.Key.f3 and key__.mods.shift and !self.queries_done) {
self.logger.print("explicit width capability detected", .{});
@ -256,6 +256,13 @@ pub fn process_renderer_event(self: *Self, msg: []const u8) Error!void {
self.vx.screen.width_method = .unicode;
return;
}
// Check for a cursor position response for our scaled text query. This will
// always be an F3 key with alt = true, and we must be looking for queries
if (key__.codepoint == vaxis.Key.f3 and key__.mods.alt and !self.queries_done) {
self.logger.print("scaled text capability detected", .{});
self.vx.caps.scaled_text = true;
return;
}
const key_ = filter_mods(normalize_shifted_alphas(key__));
try self.sync_mod_state(key_.codepoint, key_.mods);
const cbor_msg = try self.fmtmsg(.{