feat(app): signal WINCH for .resize system event

This allows the application to automatically re-draw and resize if the
application receives the signal by the terminal emulator.
This commit is contained in:
2025-05-21 22:49:08 +02:00
parent ba25e6056c
commit e9a9c2b680
2 changed files with 29 additions and 8 deletions

View File

@@ -8,6 +8,8 @@ pub const SystemEvent = union(enum) {
init,
/// Quit event to signify the end of the event loop (rendering should stop afterwards)
quit,
/// Resize event to signify that the application should re-draw to resize
resize,
/// Error event to notify other containers about a recoverable error
err: struct {
/// actual error