this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

examples(text_input): use all kitty flags

+6 -5
+6 -5
examples/text_input.zig
··· 39 39 const writer = buffered_writer.writer().any(); 40 40 41 41 // Initialize Vaxis 42 - var vx = try vaxis.init(alloc, .{}); 42 + var vx = try vaxis.init(alloc, .{ 43 + .kitty_keyboard_flags = .{ .report_events = true }, 44 + }); 43 45 defer vx.deinit(alloc, tty.anyWriter()); 44 46 45 47 var loop: vaxis.Loop(Event) = .{ ··· 64 66 var text_input = TextInput.init(alloc, &vx.unicode); 65 67 defer text_input.deinit(); 66 68 67 - // Sends queries to terminal to detect certain features. This should 68 - // _always_ be called, but is left to the application to decide when 69 - // try vx.queryTerminal(); 70 - 71 69 try vx.setMouseMode(writer, true); 72 70 73 71 try buffered_writer.flush(); 72 + // Sends queries to terminal to detect certain features. This should 73 + // _always_ be called, but is left to the application to decide when 74 + try vx.queryTerminal(tty.anyWriter(), 1 * std.time.ns_per_s); 74 75 75 76 // The main event loop. Vaxis provides a thread safe, blocking, buffered 76 77 // queue which can serve as the primary event queue for an application