summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/replica.zig6
-rw-r--r--core/root.zig2
2 files changed, 7 insertions, 1 deletions
diff --git a/core/replica.zig b/core/replica.zig
index cbb64363..817d2c19 100644
--- a/core/replica.zig
+++ b/core/replica.zig
@@ -3257,6 +3257,12 @@ fn takeJoined(r: *Replica, j: *Joined, have: ?*Have, t0: u64) void {
// PARDES_REPLICA_STATS: its timing samples kept, for its line.
r.stats.samples = std.c.getenv("PARDES_REPLICA_STATS") != null;
r.gmtoff = j.gmtoff;
+ // PARDES_TERM_BYTES: its terminals its own emulators, fed the pty's
+ // bytes its units carry (a session started with it: Peers.bytes).
+ if (std.c.getenv("PARDES_TERM_BYTES") != null) {
+ r.t.screen_state = false;
+ r.core().echo = null;
+ }
// On the session's machine: a file read sent by hash is read here;
// far, it goes to the disk for the next join.
r.t.local_files = have == null;
diff --git a/core/root.zig b/core/root.zig
index 65f61e0d..8c325935 100644
--- a/core/root.zig
+++ b/core/root.zig
@@ -631,7 +631,7 @@ const machine_lines = [_]struct { []const u8, usize, []const u8 }{
.{ "jj.zig", 8, "jj run under tape.site(.jj) on an io of its own (the tape's spawns nothing) with this process's environment, the signal mask cleared as Stream's children's: the session's, a replica replays its answer" },
.{ "look.zig", 6, "openLink's fork (the host's: a view's frontend opens a link) and a remote's error name" },
.{ "memory.zig", 7, "the memory regions themselves (mmap, madvise, their locks)" },
- .{ "replica.zig", 75, "the client and session engines: sockets, threads, clocks, the blob cache, traces" },
+ .{ "replica.zig", 76, "the client and session engines: sockets, threads, clocks, the blob cache, traces" },
.{ "rollback.zig", 1, "a test helper's directory" },
.{ "root.zig", 4, "dev's modules re-exported (host_io, file_watch, glide, fonts)" },
.{ "selection_pipe.zig", 14, "a pipe's child processes and their files: the host's `pipe` entry" },