diff options
Diffstat (limited to 'core/echo.zig')
| -rw-r--r-- | core/echo.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/echo.zig b/core/echo.zig index 90dcfede..40200696 100644 --- a/core/echo.zig +++ b/core/echo.zig @@ -564,7 +564,7 @@ const Rig = struct { written: std.ArrayListUnmanaged(u8) = .empty, now: u64 = 1_000 * ms, - fn ptyWrite(ctx: ?*anyopaque, _: u8, bytes: []const u8) void { + fn ptyWrite(ctx: ?*anyopaque, _: pardes.Pane.Id, bytes: []const u8) void { const g: *Rig = @ptrCast(@alignCast(ctx.?)); g.written.appendSlice(testing.allocator, bytes) catch {}; } @@ -601,7 +601,7 @@ const Rig = struct { /// The shell prints `bytes`; the replica gets the unit and the delta. fn prints(g: *Rig, bytes: []const u8) !void { - g.a.output(.{ .output = .{ .pane = g.shell, .bytes = bytes } }); + g.a.output(.{ .output = .{ .pane = .at(g.shell), .bytes = bytes } }); try g.sync(); } |
