···949495959696 // The event loop requires an intrusive init. We create an instance with
9797- // stable points to Vaxis and our TTY, then init the instance. Doing so
9797+ // stable pointers to Vaxis and our TTY, then init the instance. Doing so
9898 // installs a signal handler for SIGWINCH on posix TTYs
9999 //
100100 // This event loop is thread safe. It reads the tty in a separate thread
101101 var loop: vaxis.Loop(Event) = .{
102102 .tty = &tty,
103103- .vaxis = &vaxis,
103103+ .vaxis = &vx,
104104 };
105105 try loop.init();
106106···117117118118 // init our text input widget. The text input widget needs an allocator to
119119 // store the contents of the input
120120- var text_input = TextInput.init(alloc);
120120+ var text_input = TextInput.init(alloc, &vx.unicode);
121121 defer text_input.deinit();
122122123123 // Sends queries to terminal to detect certain features. This should always
···127127 while (true) {
128128 // nextEvent blocks until an event is in the queue
129129 const event = loop.nextEvent();
130130- std.log.debug("event: {}", .{event});
131130 // exhaustive switching ftw. Vaxis will send events if your Event enum
132131 // has the fields for those events (ie "key_press", "winsize")
133132 switch (event) {