summaryrefslogtreecommitdiff
path: root/src/termio/Thread.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-11-05 09:39:56 -0700
committerMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-11-05 19:31:26 -0700
commitf2d9475d5d9ebc21f5a95f1ba1ac32ecaa357116 (patch)
tree4bcae7924f9c263c9576e5ee8c90e8bcf95840eb /src/termio/Thread.zig
parent5cb6ebe34d4df575836e92ca2447359062497f57 (diff)
Switch over to the IO thread. A messy commit!
Diffstat (limited to 'src/termio/Thread.zig')
-rw-r--r--src/termio/Thread.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/termio/Thread.zig b/src/termio/Thread.zig
index 0338617f6..7201101d7 100644
--- a/src/termio/Thread.zig
+++ b/src/termio/Thread.zig
@@ -162,7 +162,8 @@ fn drainMailbox(self: *Thread) !void {
log.debug("mailbox message={}", .{message});
switch (message) {
.resize => |v| try self.impl.resize(v.grid_size, v.screen_size),
- .small_write => |v| try self.impl.queueWrite(v.data[0..v.len]),
+ .write_small => |v| try self.impl.queueWrite(v.data[0..v.len]),
+ .write_stable => |v| try self.impl.queueWrite(v),
}
}
}