···3939 const writer = buffered_writer.writer().any();
40404141 // Initialize Vaxis
4242- var vx = try vaxis.init(alloc, .{});
4242+ var vx = try vaxis.init(alloc, .{
4343+ .kitty_keyboard_flags = .{ .report_events = true },
4444+ });
4345 defer vx.deinit(alloc, tty.anyWriter());
44464547 var loop: vaxis.Loop(Event) = .{
···6466 var text_input = TextInput.init(alloc, &vx.unicode);
6567 defer text_input.deinit();
66686767- // Sends queries to terminal to detect certain features. This should
6868- // _always_ be called, but is left to the application to decide when
6969- // try vx.queryTerminal();
7070-7169 try vx.setMouseMode(writer, true);
72707371 try buffered_writer.flush();
7272+ // Sends queries to terminal to detect certain features. This should
7373+ // _always_ be called, but is left to the application to decide when
7474+ try vx.queryTerminal(tty.anyWriter(), 1 * std.time.ns_per_s);
74757576 // The main event loop. Vaxis provides a thread safe, blocking, buffered
7677 // queue which can serve as the primary event queue for an application