summaryrefslogtreecommitdiff
path: root/test/replicas.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/replicas.zig')
-rw-r--r--test/replicas.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/replicas.zig b/test/replicas.zig
index 8035e051..5208f6ac 100644
--- a/test/replicas.zig
+++ b/test/replicas.zig
@@ -35,8 +35,8 @@ const std = @import("std");
const libc = std.c;
const pardes = @import("pardes");
const replica = pardes.replica;
-const screen_state = pardes.screen_state;
-const echo = pardes.echo;
+const screen_state = pardes.Term.screen_state;
+const Echo = pardes.Term.Echo;
const Key = pardes.Key;
const gpa = std.heap.c_allocator;
@@ -216,7 +216,7 @@ fn writeFile(path: [:0]const u8, lines: usize) !void {
const Run = struct { seed: u64, rtt_ms: u64, steps: usize, clients: u16, shared: bool, flood_mb: u64 };
/// The terminal pane's screen as a hash of screen_state's dump of it.
-fn screenHash(t: *pardes.panes.terminal.VtSlot) u64 {
+fn screenHash(t: *pardes.Term.screen_state.Terminal) u64 {
var buf: [8192]u8 = undefined;
var h: std.Io.Writer.Hashing(std.hash.Wyhash) = .initHasher(.init(0), &buf);
screen_state.dumpScreen(t, &h.writer) catch {};
@@ -901,7 +901,7 @@ const EchoTotals = struct {
}
};
-fn cellCp(state: *pardes.panes.terminal.State, x: u16, y: u16) u21 {
+fn cellCp(state: *pardes.Term.State, x: u16, y: u16) u21 {
const ci = state.vt.screens.active.pages.getCell(.{ .active = .{ .x = x, .y = y } }) orelse return 0x10ffff;
const cp = ci.cell.codepoint();
return if (cp == 0) ' ' else cp;
@@ -984,7 +984,7 @@ fn runEcho(seed: u64, rtt_ms: u64, on: bool, et: *EchoTotals) !void {
var frame_arena: std.heap.ArenaAllocator = .init(gpa);
defer frame_arena.deinit();
- var made: std.ArrayListUnmanaged(echo.Echo.Predicted) = .empty;
+ var made: std.ArrayListUnmanaged(Echo.Predicted) = .empty;
defer made.deinit(gpa);
rp.echo.log = &made;
while (queue.pop()) |m| {