diff options
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/gui/gui.zig | 4 | ||||
| -rw-r--r-- | dev/tui/tui.zig | 11 |
2 files changed, 6 insertions, 9 deletions
diff --git a/dev/gui/gui.zig b/dev/gui/gui.zig index bdbd7880..bfe658f9 100644 --- a/dev/gui/gui.zig +++ b/dev/gui/gui.zig @@ -1355,7 +1355,7 @@ const Client = struct { cl.lock.lockUncancelable(cl.io); defer cl.lock.unlock(cl.io); for (cl.inbox.items) |msg| switch (msg) { - .unit, .screen, .refused, .blob => |b| std.heap.c_allocator.free(b), + .unit, .refused, .blob => |b| std.heap.c_allocator.free(b), .checked, .ended, .left => {}, }; cl.inbox.clearRetainingCapacity(); @@ -1368,8 +1368,6 @@ const Client = struct { const link_ended = cl.link_ended; cl.lock.unlock(cl.io); for (cl.taken.items) |msg| { - // PARDES_TEST_LATENCY: when a terminal's delta came (an echo's). - if (msg == .screen) latencyNote("S {d}\n", .{monoNs()}); l.take(msg); // And after a unit, the first of its own inputs not confirmed. if (msg == .unit) { diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig index 92ac6a0c..2f731e68 100644 --- a/dev/tui/tui.zig +++ b/dev/tui/tui.zig @@ -699,7 +699,7 @@ const Tty = struct { pub fn drop(t: *Tty) void { while (t.loop.tryEvent() catch null) |ev| switch (ev) { .said => |msg| switch (msg) { - .unit, .screen, .refused, .blob => |b| std.heap.c_allocator.free(b), + .unit, .refused, .blob => |b| std.heap.c_allocator.free(b), .checked, .ended, .left => {}, }, .paste => |b| t.sh.gpa.free(@constCast(b)), @@ -1585,12 +1585,11 @@ const Shell = struct { s.input_seen = true; }, .said => |said| if (s.client) |c| { - // The session's units and deltas are a client's output - // (waitInput paces it): a terminal's delta, or the unit - // that answers its own input, is its echo, drawn at once. + // The session's units are a client's output (waitInput + // paces it): the unit that answers its own input is its + // echo, drawn at once. s.output_seen = true; const echo = switch (said) { - .screen => true, .unit => |b| if (replica.parseUnit(b)) |u| u.origin == c.link.r.id else false, else => false, }; @@ -1598,7 +1597,7 @@ const Shell = struct { c.take(said); if (said == .refused or said == .ended or said == .left) return true; } else switch (said) { - .unit, .screen, .refused, .blob => |b| std.heap.c_allocator.free(b), + .unit, .refused, .blob => |b| std.heap.c_allocator.free(b), .checked, .ended, .left => {}, }, .link_gone => if (s.client) |c| { |
