feat(event): add focus in/out event to SystemEvents
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 3m54s

feat(app): add minimal size argument for App.start

Read more corresponding inputs from stdin and convert them correctly
(i.e. in band window resizing), further keys (arrow keys, F-keys, etc.).
Respect the provided minimal size for the application which posts an
error message in case the size is smaller than the requested minimal
size.
This commit is contained in:
2024-12-25 12:53:39 +01:00
parent f7cd61d619
commit 3a989321fc
11 changed files with 214 additions and 18 deletions

View File

@@ -94,7 +94,7 @@ pub fn main() !void {
});
defer layout.deinit();
try app.start();
try app.start(null);
defer app.stop() catch unreachable;
// App.Event loop
@@ -115,6 +115,7 @@ pub fn main() !void {
.err => |err| {
log.err("Received {any} with message: {s}", .{ err.err, err.msg });
},
else => {},
}
const events = try layout.handle(event);