mod(example): direct rendering "q" to quit
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 2m58s

This commit is contained in:
2026-03-24 17:54:26 +01:00
parent 312fbedf4c
commit bdf58f5102
+2
View File
@@ -155,6 +155,8 @@ pub fn main() !void {
.line => |line| {
defer gpa.free(line);
log.debug("{s}", .{line});
if (std.mem.eql(u8, line, "q\n")) app.quit();
},
// NOTE errors could be displayed in another container in case one was received, etc. to provide the user with feedback
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),