From 3176eb81ef6e65a54173d47550b273bed9db7ae5 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Thu, 18 Jan 2024 20:35:33 -0600 Subject: [PATCH] hack: go to ground state in escape state Only doing this until I finish the parser Signed-off-by: Tim Culverhouse --- examples/main.zig | 2 +- src/Tty.zig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 => {}, } }