Skip to content

Writing criteria for this guide

Every "for Mere Mortals" guide is written to the same nine-point standard, so a reader who trusts one can trust the rest. Here it is, with the verification notes for this particular guide below.

  1. Fix it first. Reader outcomes lead, not action items: each chapter opens by naming the outcome it delivers, shows a check the reader can run to confirm they got it, and a reasonable reader finishes able to state what was done, what it means, and what to try next.
  2. Plain language. Short sentences, everyday vocabulary, technical terms defined on first use. No slang, and no idioms that only make sense in one country — the reader may be translating as they go.
  3. No dead ends. A guide never tells the reader to do something it cannot show them how to verify. Every claim a reader relies on — an install, a command, an output — is something this guide demonstrates or clearly labels documented-only below.
  4. Live-verified where it matters. Procedures are run for real in the guide's lab wherever the build machine allows it, and the transcripts kept in the repository are the evidence. What could not be run is listed honestly below, never presented as if it had been.
  5. General audiences. Nothing in this guide — examples, fixtures, names, addresses — is modelled on any particular reader or author's real life, network, or organisations. The lab's traffic is the lab talking to itself.
  6. Standalone. A reader needs this guide, its lab, and nothing else. Where another guide would genuinely help, it is pointed to once, by name, and the chapter still completes without it.
  7. Honest about limits. Chapter 13 names what the tool cannot do: a reboot ends every session, a dead server takes its session with it, the scrollback is finite memory and not a record, a session lives on one machine only, the terminal model is an old one, and an attached client is trust with no finer grain.
  8. The access rule is in the text, early. Chapter 1 and the README state the rule plainly — a session is an unlocked shell; share it only as you would hand over your keyboard — before any procedure depends on it, and chapter 9 states it again where the tooling makes sharing a single flag easy.
  9. Builds clean. The site builds with MkDocs in strict mode with no warnings, and a fresh reader following the chapters in order reaches the stated outcome of each.

Verification notes for this guide

The build machine is an Ubuntu 24.04 sandbox. GNU Screen 4.9.1 — the distribution's own package for Ubuntu 24.04 (screen 4.9.1-1ubuntu1) — was unpacked onto the machine directly, because the sandbox's package manager was busy with system maintenance throughout the build; the screen binary and the global /etc/screenrc are the package's own files, unaltered, and the version transcript (t00) is the binary's own report. All work was done as a throwaway user, lab, created for the purpose. Two kinds of evidence were kept: scripted sessions driven from outside with -X (the method is screen-lab/run-lab.sh), and genuinely interactive sessions driven through a pseudo-terminal by screen-lab/drive.py — a small standard-library Python program that sends real keystrokes, Ctrl-A sequences included, and captures what the terminal showed. Hardcopy dumps in the transcripts are shown with the blank tail of the 24-line screen trimmed; nothing else is edited.

Run for real, with transcripts as evidence:

  • Version, install location, and the global configuration file (t00).
  • A detached session running a clock that prints the time every four seconds, captured by hardcopy twice, ten seconds apart, while nobody was attached — the timestamps accumulate unwatched (t01).
  • A full interactive round trip through the pseudo-terminal: windows created and switched with Ctrl-A c / Ctrl-A p, the Ctrl-A w window list, a horizontal split (Ctrl-A S, Tab, Ctrl-A 1, Ctrl-A Q), detach with Ctrl-A d, the detached listing, reattach, detach again (t02; the raw capture is kept at screen-lab/raw/t02-interactive.raw).
  • Windows built from outside with -X screen, renamed with -X title, listed with -Q windows, and harvested per window with hardcopy (t03).
  • Copy mode with real keys — Ctrl-A [, g, Space, 5j, Enter — after which the paste buffer, read back with writebuf, held exactly the six lines the keys had marked; and hardcopy measured against hardcopy -h on the same window: 24 lines against 42 (t04).
  • A .screenrc measured, not asserted: with the system default (defscrollback 1024, from the package's own /etc/screenrc), a window that printed 1500 lines kept 1048 in a hardcopy -h capture; with the guide's defscrollback 5000 it kept 1503. The same file's ready-made windows (0 editor 1 shell 2 logs) and its hardstatus line, the latter lifted from the raw terminal capture as drawn (t05).
  • The escape ^Tt configuration: a session whose Ctrl-A c demonstrably does not create a window (the stray c lands in the shell as text) and whose Ctrl-T c does, verified by the resulting window list (t07).
  • $STY read inside a window (it holds the session's pid.name), and window logging toggled with Ctrl-A H: the resulting screenlog.0 contains only what printed after the keypress (t08).
  • Two clients attached to one session at once with -x: each saw the other's typed line in the shared window, and screen -ls during the overlap reported the session as (Attached) (t06).

Documented only — described from the project's documentation, not run, and the text does not claim otherwise:

  • The SSH transport in chapter 10. The sandbox runs no SSH server, so no login was made; every Screen behaviour on the far side of the pattern is the verified material of chapters 4 to 6.
  • Multiuser mode and its ACL commands (multiuser, acladd, aclchg) for admitting a different user. On a stock install the Screen binary's file permissions are part of how that door is guarded; the lab's unpacked copy does not reproduce them, so chapter 9 gives the commands without vouching for them. The same-user -x sharing above is the verified route.
  • The vertical-split key (Ctrl-A |) and the full-screen window list (Ctrl-A "). Both are keys whose entire effect is a redraw of the terminal; a text transcript cannot flatten a redraw into evidence, so the guide teaches them from the manual. The horizontal split (t02) and the message-line window list (Ctrl-A w, t02) are the verified halves of those pairs.
  • Session logging switched on from birth with the -L and -Logfile flags (chapter 11). The mechanism is the same one t08 verifies from the keyboard (Ctrl-A H); the flags set it before the first window exists.
  • The comparison tools in chapter 12 are characterised, not benchmarked; tmux was not installed on the lab machine.

One finding from the lab floor, recorded in chapters 11 and 14 because readers scripting sessions will meet it: a command handed to -X has its $VARIABLES expanded by Screen before it is typed — the lab's first clock loop lost its counter variable this way, which is why transcript t01's loop is written without one, and why the recipes type script files rather than inline commands with dollars in them.

Fixtures are this guide's own and deliberately generic: a clock that prints the time, counted output from seq, three windows named editor, shell and logs, two scripted clients typing their own names for themselves — and a throwaway user called lab on a sandbox. No example is modelled on any real person, network, service or organisation.