vaxis: request kitty keyboard release events from vaxis

Update Vaxis and use the options struct to request keyboard release
events.
This commit is contained in:
Tim Culverhouse 2024-05-10 20:00:06 -05:00
parent 1cd3cb17ce
commit 348081bd27
2 changed files with 6 additions and 3 deletions

View file

@ -46,9 +46,12 @@ const Event = union(enum) {
};
pub fn init(a: std.mem.Allocator, handler_ctx: *anyopaque, no_alternate: bool) !Self {
const opts: vaxis.Vaxis.Options = .{
.kitty_keyboard_flags = .{ .report_events = true },
};
return .{
.a = a,
.vx = try vaxis.init(a, .{}),
.vx = try vaxis.init(a, opts),
.no_alternate = no_alternate,
.event_buffer = std.ArrayList(u8).init(a),
.bracketed_paste_buffer = std.ArrayList(u8).init(a),