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 mouse_leave,
12 focus_in,
13 focus_out,
14 paste_start, // bracketed paste start
15 paste_end, // bracketed paste end
16 paste: []const u8, // osc 52 paste, caller must free
17 color_report: Color.Report, // osc 4, 10, 11, 12 response
18 color_scheme: Color.Scheme,
19 winsize: Winsize,
20
21 // these are delivered as discovered terminal capabilities
22 cap_kitty_keyboard,
23 cap_kitty_graphics,
24 cap_rgb,
25 cap_sgr_pixels,
26 cap_unicode,
27 cap_da1,
28 cap_color_scheme_updates,
29 cap_multi_cursor,
30};