mod(example): direct rendering "q" to quit
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 2m58s
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 2m58s
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user