a modern tui library written in zig
1pub const Key = @import("Key.zig");
2pub const Mouse = @import("Mouse.zig");
3pub const Color = @import("Cell.zig").Color;
4pub const Winsize = @import("main.zig").Winsize;
5
6/// The events that Vaxis emits internally
7pub const Event = union(enum) {
8 key_press: Key,
9 key_release: Key,
10 mouse: Mouse,
11 focus_in,
12 focus_out,
13 paste_start, // bracketed paste start
14 paste_end, // bracketed paste end
15 paste: []const u8, // osc 52 paste, caller must free
16 color_report: Color.Report, // osc 4, 10, 11, 12 response
17 color_scheme: Color.Scheme,
18 winsize: Winsize,
19
20 // these are delivered as discovered terminal capabilities
21 cap_kitty_keyboard,
22 cap_kitty_graphics,
23 cap_rgb,
24 cap_sgr_pixels,
25 cap_unicode,
26 cap_da1,
27 cap_color_scheme_updates,
28};