summaryrefslogtreecommitdiff
path: root/runtime/session.zig
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/session.zig')
-rw-r--r--runtime/session.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/session.zig b/runtime/session.zig
index 75e8efcc..9499da9c 100644
--- a/runtime/session.zig
+++ b/runtime/session.zig
@@ -86,7 +86,11 @@ pub fn Loop(comptime Frontend: type) type {
defer l.prompt_rcs.deinit();
l.fs = ninep_io.start(l.io, l.gpa, l.core);
defer if (l.fs) |f| f.deinit(l.gpa);
- l.peers = .{ .gpa = l.gpa, .io = l.io, .name = daemon.name() };
+ // Its clients' terminals by the pty's bytes (Peers.bytes), each
+ // client's emulator its own; PARDES_TERM_SCREEN (a working name,
+ // the way back until the screen state's road is deleted): as
+ // screen state. Its welcome tells each client which.
+ l.peers = .{ .gpa = l.gpa, .io = l.io, .name = daemon.name(), .bytes = std.c.getenv("PARDES_TERM_SCREEN") == null };
l.inbox = .{ .io = l.io, .gpa = l.gpa, .lsp_allocator = l.allocs.lsp };
defer l.inbox.deinit();
// A search's worker may be waiting on the queue for room.