diff --git a/examples/main.zig b/examples/main.zig index 6f6d73d..a71c3c3 100644 --- a/examples/main.zig +++ b/examples/main.zig @@ -19,7 +19,7 @@ pub fn main() !void { }, else => {}, } - log.debug("event: {}", .{event}); + log.debug("event: {}\r\n", .{event}); } } diff --git a/src/Tty.zig b/src/Tty.zig index a489099..6b97ce8 100644 --- a/src/Tty.zig +++ b/src/Tty.zig @@ -121,6 +121,7 @@ pub fn run( app.postEvent(.{ .key_press = k }); } }, + .escape => state = .ground, else => {}, } }