fix tty nextEvent call on Windows
This commit is contained in:
parent
32dc17c087
commit
0e6fa89e44
1 changed files with 5 additions and 1 deletions
|
@ -447,8 +447,12 @@ const Loop = struct {
|
||||||
fn ttyRun(self: *Loop) !void {
|
fn ttyRun(self: *Loop) !void {
|
||||||
switch (builtin.os.tag) {
|
switch (builtin.os.tag) {
|
||||||
.windows => {
|
.windows => {
|
||||||
|
var parser: vaxis.Parser = .{
|
||||||
|
.grapheme_data = &self.vaxis.unicode.grapheme_data,
|
||||||
|
};
|
||||||
|
const a = self.vaxis.opts.system_clipboard_allocator orelse @panic("no tty allocator");
|
||||||
while (!self.should_quit) {
|
while (!self.should_quit) {
|
||||||
self.postEvent(try self.tty.nextEvent());
|
self.postEvent(try self.tty.nextEvent(&parser, a));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
else => {
|
else => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue