Merge pull request #8 from rockorager/master

vaxis: request kitty keyboard release events from vaxis
This commit is contained in:
CJ van den Berg 2024-05-11 12:22:43 +02:00 committed by GitHub
commit 045b8c112d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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),