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 14 names what the tool cannot do: footnotes that never render, images reduced to a caption line, raw HTML reduced to its text, an extension rule that decides by name, a width that ignores the window, a ten-second wait for a terminal that never answers, and a rendering that contaminates any file it is carelessly captured into.
  8. The one rule is in the text, early. Chapter 1 and the README state the rule plainly — the rendering is a reading of the document, not the document — before any procedure depends on it, and later chapters point back to it where the reading could be mistaken for the thing itself: a footnote declared missing from a document, a caption line taken for the photograph, a captured page of escapes pasted into a file.
  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 a 4-CPU, 7.7 GB Ubuntu 24.04.5 sandbox. Glow 3.0.0 (add5e7a) was the project's official release binary for Linux x86-64, taken from the charmbracelet/glow GitHub releases and run from the lab folder rather than installed system-wide; less 590 was the companion pager. The fixtures are the lab's own, in glow-lab/fixtures/. Helpers in glow-lab/: render.sh (strips escape codes, including OSC 8, so rendered output can be printed), pager-spy.sh (a pretend pager that records being called and saves what it is handed), pty-run.sh (runs a command under a real terminal via script(1)), answer-terminal.py (a Python terminal driver that answers the OSC 10/11 colour questions and cursor-position requests a real terminal answers, schedules keystrokes, and can stay mute to measure the unanswered-terminal wait), and final-screen.py (rebuilds a TUI program's final screen from the recorded bytes with a terminal emulator — pyte 0.8.2, vendored under glow-lab/vendor/ because the sandbox's system Python state proved unreliable). glow-lab/run-transcripts.sh regenerates every transcript from the real binary. To keep the machine's own settings out of the experiments, runs were made with XDG_CONFIG_HOME pointed at scratch folders inside the lab; configuration transcripts show the lab paths that result, and chapter 12 says why.

Run for real, with transcripts as evidence:

  • Version, the head of --help, and the less version the lab relied on; also the man page's -m flag that --help does not show (t00).
  • The rendering taken apart: a full-featured specimen rendered in dark (36,138 bytes from a 1,390-byte source) and stripped for print; escape codes read per element — the heading band 228-on-63, body 252, inline code 203 on 236, link text 35 bold, address 30 underlined; the pipe fallback byte-identical to -s notty, including the 4 surviving OSC 8 ESC bytes (t01).
  • stdin: piped input overruling a file argument, no-argument rendering from a redirected file, and the documented dash form (t02).
  • The pager, proved by substitution on a real terminal and in a pipe: the spy received the coloured rendering (9,212 bytes, 1,196 ESC) on a terminal and the plain one (798) off it, called with zero arguments both times, while Glow's own stdout stayed empty; the real less -r default was also run once on the answering terminal and quit with q (t03).
  • Styles: all eight shipped names run on one fixture with byte counts; auto in a pipe byte-identical to notty, ascii identical on that fixture; dark body colour 252 and light 234 counted; a nonexistent style name refused with exit 1 (t04).
  • Width: -w 40 and -w 0 measured; terminals of 30, 50 and 120 columns all yielding longest line 78 (t05).
  • Remote reading: the project's README fetched by raw URL (17,289 bytes) and by github.com/… shorthand, byte-identical; a 404 refused with exit 1; a domain-less shorthand treated as a local path (t06). Fetched content is live upstream material; counts are a snapshot.
  • Configuration: the generated glow.yml captured; width from the file honoured in pipe and terminal; style from the file honoured on a terminal and ignored in a pipe; a flag overruling the file; the --config quirk — a render ignoring a --config file's width that the same file at the default location had honoured; EDITOR=cat glow config printing then rewriting the file (t07).
  • The TUI, driven under the answering terminal and quoted from emulator-reconstructed final screens: the browser's document list (7 of 9 files; extensionless and .txt absent), ENTER opening the built-in pager, ESC back, q quitting; 18 documents inside a git checkout; -a changing 1 document to 2; -l numbering the rendered lines of a page (t08).
  • Sources and errors: the same content under eleven names (rendered: .md, .MD, .markdown, .mdown, .mkd, no extension; plain: .txt, .rst, .py, .html, .text, .adoc, .mdwn, .md.txt); an image rendered as a caption line naming the file's absolute path, identical with the image file present and moved away; missing file, two arguments and unknown flag errors with exit codes; -m accepted (t09).
  • New lines: -n byte-identical to the default on both specimens built to provoke it, and again at width 40; blank-line runs collapsing either way (t10).
  • The terminal questions: the raw OSC 10/DSR/OSC 11 query bytes captured; the mute-terminal run at 10.04 s against 0.07 s answering, both dark; NO_COLOR=1 ignored in a pipe and on a terminal (t90).
  • Custom styles: the stock glamour dark JSON with its heading recoloured to 226 on 196 produced the predicted escape 38;5;226;48;5;196;1; a deliberately broken JSON style refused with the renderer's own error; a missing JSON path drawing the "does not exist" message (lab runs behind chapter 8; the style files are glow-lab/dark-stock.json and glow-lab/custom-style.json).

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

  • auto choosing the light style on a light-background terminal: the lab's pretend terminal could not be persuaded to report a light background that Glow accepted; the questions, the wait, and the dark fallback are the proved parts.
  • The package installation routes (Homebrew, the Charm apt/dnf repositories, go install): the lab ran the release binary.
  • The GitLab shorthand for remote reading; the GitHub shorthand was run byte-for-byte.
  • Mouse interaction in the TUI (-m): the flag's acceptance was run; clicking and wheel scrolling were not driven.
  • The default pager being less -r is quoted from the project; that a pager is invoked, and what it receives, is proved by the spy.
  • mdcat in chapter 13 is characterised from its public documentation, not run; the other neighbours were run or are this series' own guides.
  • The glamour style vocabulary beyond the one-entry edit proved above.

Fixtures are this guide's own and deliberately generic: a walking club's trail notes, a packing list, a meeting notice, a village-show photo page, a paragraph built to test wrapping, a notice board, and a kitchen-sink specimen carrying a footnote, strikethrough, raw HTML and an unnamed code fence. No example is modelled on any real person, network, service or organisation.