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

@@ -150,6 +150,7 @@ fn drainMailbox(self: *Thread) !void {
log.debug("mailbox message={}", .{message});
switch (message) {
.change_config => |config| try self.impl.changeConfig(config),
.resize => |v| self.handleResize(v),
.clear_screen => |v| try self.impl.clearScreen(v.history),
.write_small => |v| try self.impl.queueWrite(v.data[0..v.len]),