summaryrefslogtreecommitdiff
path: root/docs/typ/reference.typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 22:24:45 -0300
committerGabriel Schneider <[email protected]>2026-11-17 22:47:38 -0300
commitb1b69886cce63c53f8407d2a37e29fd8876b5fe8 (patch)
treeb3eda0a305f99fc6309dc4240895e4331c48c71a /docs/typ/reference.typ
parent920110be4c597b4b93fc2d38179c09b335186253 (diff)
downloadpardes-b1b69886cce63c53f8407d2a37e29fd8876b5fe8.tar.gz
pardes-b1b69886cce63c53f8407d2a37e29fd8876b5fe8.zip
words: what a person reads says the ruled words (PARDES.md ruling 1): `pardes ps` prints a session with a frontend of its own as "(tty, has a frontend)" where it said "(tty, attached)" ("detached" stays, its clients listed under it as before; the daemon's list keeps its wire word `attached`, so /sessions and an older daemon read the same); `pardes help ps` "What the per-user daemon lists: ... whether it has a frontend of its own or is detached" (it said "keeps" and "whether one is attached"), `pardes help attach` "One with a frontend already" ("One attached already"), `--detach`'s help "One pardes --daemon per user lists them, for attach" ("keeps sessions"); Detach's refusals "no pardes daemon lists this session" ("keeps") in the terminal and the window, and "Detach: detached already (no terminal of its own)" ("no terminal is attached"); the README's /sessions line names `attached` (a frontend of its own) and the `client <pid>` lines the daemon sends; docs/typ/command-line.txt written again from `pardes help --all` (the golden that moved: its ps, attach, --detach and sessions lines); test/daemon.py's window case reads "(gui, has a frontend)"; the manual follows: running.typ's list of older words keeps only the code's own (authority, Peers/Link, Shell, unattended, /sessions's attached), reference.typ's /sessions and Sessions, guide.typ's ps line ("lists"); NOT renamed: the daemon's hello and state words (wire), the 9P file /sessions's content, the builtins Detach, Adopt and Unattach; tui core-test 811/950 (139 skipped), shell-test 993/996 (the command-line.txt test with it), behaviour-test 269/273 (the four addon ABI tests the base fails), process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's), daemon.py main passes; gui frame corpus 77/77 byte-identical against mbase, unit-test 1582/1590 (the base's 8 failures); the book and the site compile
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs/typ/reference.typ')
-rw-r--r--docs/typ/reference.typ13
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ
index dff79859..7a01243c 100644
--- a/docs/typ/reference.typ
+++ b/docs/typ/reference.typ
@@ -1008,10 +1008,10 @@ at 200, ending in `…`. Control characters become spaces.
`+Pager` of the session's.
- #file("/listeners"): the session's dial addresses, a line each
(#doc("building", section: "listeners")).
-- #file("/sessions"): what the pardes daemon keeps, as `pardes --ps`
+- #file("/sessions"): what the pardes daemon lists, as `pardes ps`
shows it, a record a line: `daemon <pid>`, then `session <pid> tty|gui
- attached|detached <name>` (attached: it has a terminal or window of its
- own) with a `client <pid>` line for each of its clients and a
+ attached|detached <name>` (attached, the daemon's word: it has a frontend
+ of its own, a terminal or window; `pardes ps` says "has a frontend") with a `client <pid>` line for each of its clients and a
`shell <pid>` line for each shell it holds, then `orphan <pid>` for each
shell no session holds. Any of the
names attaches (`pardes --attach=<name>`, either kind). Read fails `no
@@ -1332,8 +1332,9 @@ to its end before the write is answered, and one that finds nothing fails,
another; a removed line's `-` goes to the line now standing where it was.
git's `a/` `b/` (and `c/ i/ w/ o/`) prefixes are dropped; a
`--no-prefix` diff's paths are kept.
-- *Sessions.* `pardes --ps` prints what the daemon keeps: each session
- (its pid, terminal or window, attached or detached, name) with the pids
+- *Sessions.* `pardes --ps` prints what the daemon lists: each session
+ (its pid, terminal or window, whether it has a frontend or is detached,
+ name) with the pids
and commands of its clients and of the shells it holds, then the shells no session holds,
which #word("Adopt") takes. `--kill=NAME` ends that session and its
shells (a TERM, then a KILL 2 s later; unsaved changes are lost),
@@ -1344,7 +1345,7 @@ to its end before the write is answered, and one that finds nothing fails,
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
+ and exits 1. A session with a frontend already is joined as a client, as one of
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