summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/e2e_harness.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e_harness.zig b/test/e2e_harness.zig
index c188827e..2e87d362 100644
--- a/test/e2e_harness.zig
+++ b/test/e2e_harness.zig
@@ -96,7 +96,7 @@ pub const Harness = struct {
}
const term = try gpa.create(ghostty_vt.Terminal);
errdefer gpa.destroy(term);
- term.* = try ghostty_vt.Terminal.init(gpa, .{
+ term.* = try ghostty_vt.Terminal.init(std.Io.Threaded.global_single_threaded.io(), gpa, .{
.cols = cols,
.rows = rows,
.max_scrollback = 1024 * 1024,
@@ -194,7 +194,7 @@ pub const Harness = struct {
pub fn resize(self: *Harness, rows: u16, cols: u16) !void {
self.rows = rows;
self.cols = cols;
- self.term.resize(self.gpa, cols, rows) catch {};
+ self.term.resize(self.gpa, .{ .cols = cols, .rows = rows }) catch {};
const ws = posix.winsize{ .row = rows, .col = cols, .xpixel = 0, .ypixel = 0 };
_ = posix.system.ioctl(self.master, TIOCSWINSZ, @intFromPtr(&ws));
}