termio: use DerivedConfig

This commit is contained in:
Mitchell Hashimoto
2023-03-19 10:09:17 -07:00
parent 7eda21d544
commit 8f0be3ad9e
5 changed files with 72 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ const assert = std.debug.assert;
const Allocator = std.mem.Allocator;
const renderer = @import("../renderer.zig");
const terminal = @import("../terminal/main.zig");
const termio = @import("../termio.zig");
/// The messages that can be sent to an IO thread.
///
@@ -28,6 +29,9 @@ pub const Message = union(enum) {
padding: renderer.Padding,
};
/// The derived configuration to update the implementation with.
change_config: termio.Impl.DerivedConfig,
/// Resize the window.
resize: Resize,