From 484841325bb35b0bb7c55f7980178388c4e39c71 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 18:43:09 -0300 Subject: docs: the manual and the notes made true about how pardes runs: next-daemon.md's opening says what is built and points at the new page, and its design's lines that went otherwise (a supervisor, subreaper, spawner and 9P root; every session a child of the daemon; the stub passing its terminal, no fork; the join's fork child; one socket; /n/) are marked so; the guide's closed terminal (only while the daemon keeps it) and closed window (it ends the session unless it has clients), and its daemon that kept all of it; the reference's /sessions (client lines), bare attach (as a client), another machine's attach (built: HOST:NAME), three clients not four; building.typ's replica paragraph (no ping-only session, no platform in the hash); macos.md's Attach word and src/detached/, both gone; next-daemon.md's window client font and touchpad, both built since Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- docs/typ/reference.typ | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'docs/typ/reference.typ') diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ index db4f9c77..dff79859 100644 --- a/docs/typ/reference.typ +++ b/docs/typ/reference.typ @@ -1010,8 +1010,10 @@ at 200, ending in `…`. Control characters become spaces. (#doc("building", section: "listeners")). - #file("/sessions"): what the pardes daemon keeps, as `pardes --ps` shows it, a record a line: `daemon `, then `session tty|gui - attached|detached ` with a `shell ` line for each shell it - holds, then `orphan ` for each shell no session holds. Any of the + attached|detached ` (attached: it has a terminal or window of its + own) with a `client ` line for each of its clients and a + `shell ` line for each shell it holds, then `orphan ` for each + shell no session holds. Any of the names attaches (`pardes --attach=`, either kind). Read fails `no pardes daemon answers` with none, or one too old to list (Upgrade it). - #file("/os/"): existing regular files take read, write and truncation to @@ -1339,11 +1341,14 @@ to its end before the write is answered, and one that finds nothing fails, each says so and exits 1. Bare `--detach` names the session after its pid; bare `--attach` needs exactly one detached session of its kind (a terminal's for `pardes`, a window's for `pardes-gui`), or with none detached the - only session of that kind; a second `--detach=NAME` + only session of that kind, joined as a client (with none of that kind, + the only session there is); a second `--detach=NAME` while NAME runs (a plain session is named by its pid) says so in words and exits 1. A session attached already is joined as a client, as one of - the other kind or on another machine is (`--attach=SOCKET:NAME`, its own - process, listed under the session by `--ps`), up to four clients: each + the other kind is, and one on another machine (`--attach=HOST:NAME`, over + `ssh -L`; `--attach=SOCKET:NAME` through a socket forwarded already): its + own process, listed under the session by `--ps`, up to three clients + (four views at once, the session's own among them): each terminal or window its own layout, focus, cursors, selections, modes, scroll and jumps, over the panes, texts, tags, terminals, messages and registers they share. A terminal pane shown in two takes the size of the @@ -1352,8 +1357,8 @@ to its end before the write is answered, and one that finds nothing fails, terminal closing, lets that client go and leaves the others. With none attached, `size C R` sets the screen, messages clear by the clock, and a pty reports its size in pixels at the last cell size (8×16 before any), - as CSI 14, 16 and 18 t do. Attaching from another machine is gone until - the replicated clients (docs/next-daemon.md, phase 5). + as CSI 14, 16 and 18 t do. Each way of running, and what survives + what: #doc("running"). - *Config.* The startup file is `$XDG_CONFIG_HOME/pardes/init` when that is absolute, else `~/.config/pardes/init` (macOS: `~/Library/Application Support/pardes/init`). A line that fails is a -- cgit v1.3