this repo has no description
13
fork

Configure Feed

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

examples(xev): don't render in the eventCallback

+1 -9
+1 -9
examples/xev.zig
··· 92 92 event: vaxis.xev.Event, 93 93 ) xev.CallbackAction { 94 94 const app = ud orelse unreachable; 95 - const writer = app.buffered_writer.writer().any(); 96 95 switch (event) { 97 96 .key_press => |key| { 98 97 if (key.matches('c', .{ .ctrl = true })) { ··· 100 99 return .disarm; 101 100 } 102 101 }, 103 - .winsize => |ws| watcher.vx.resize(app.allocator, writer, ws) catch @panic("TODO"), 102 + .winsize => |ws| watcher.vx.resize(app.allocator, watcher.tty.anyWriter(), ws) catch @panic("TODO"), 104 103 else => {}, 105 104 } 106 - const win = watcher.vx.window(); 107 - win.clear(); 108 - watcher.vx.render(writer) catch { 109 - std.log.err("couldn't render", .{}); 110 - return .disarm; 111 - }; 112 - app.buffered_writer.flush() catch @panic("couldn't flush"); 113 105 return .rearm; 114 106 } 115 107
temp.mp4

This is a binary file and will not be displayed.