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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 thelessversion the lab relied on; also the man page's-mflag that--helpdoes 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 -rdefault was also run once on the answering terminal and quit withq(t03). - Styles: all eight shipped names run on one fixture with
byte counts;
autoin a pipe byte-identical tonotty,asciiidentical on that fixture; dark body colour 252 and light 234 counted; a nonexistent style name refused with exit 1 (t04). - Width:
-w 40and-w 0measured; 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.ymlcaptured; 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--configquirk — a render ignoring a--configfile's width that the same file at the default location had honoured;EDITOR=cat glow configprinting 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
.txtabsent), ENTER opening the built-in pager, ESC back,qquitting; 18 documents inside a git checkout;-achanging 1 document to 2;-lnumbering 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;-maccepted (t09). - New lines:
-nbyte-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=1ignored in a pipe and on a terminal (t90). - Custom styles: the stock glamour
darkJSON with its heading recoloured to 226 on 196 produced the predicted escape38;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 areglow-lab/dark-stock.jsonandglow-lab/custom-style.json).
Documented only — described from the project's documentation
or --help text, not run, and the text does not claim
otherwise:
autochoosing thelightstyle 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 -ris 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.