Merge pull request #8 from rockorager/master
vaxis: request kitty keyboard release events from vaxis
This commit is contained in:
		
						commit
						045b8c112d
					
				
					 2 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -36,8 +36,8 @@
 | 
			
		|||
            .hash = "1220214dfb9a0806d9c8a059beb9e3b07811fd138cd5baeb9d1da432588920a084bf",
 | 
			
		||||
        },
 | 
			
		||||
        .vaxis = .{
 | 
			
		||||
            .url = "https://github.com/rockorager/libvaxis/archive/972129a764910c033042cfc50732002af62a0f83.tar.gz",
 | 
			
		||||
            .hash = "1220b34a066de45d8e58d3d85173bcd24edbd9e87b93791e621acc696d97e8e45c4c",
 | 
			
		||||
            .url = "git+https://github.com/rockorager/libvaxis#cce22e885013f91b6a226567f20afc3475ca46e0",
 | 
			
		||||
            .hash = "1220f1be979b6df72ff6bc6ed3d6fb0b74d99b75d1f8a86b392c2038702533461696",
 | 
			
		||||
        },
 | 
			
		||||
    },
 | 
			
		||||
    .paths = .{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue