How long ago, in the shortest true words: just now, 12s ago, 4m ago, 2h ago.
What TAB offers: dot commands on a line that starts with one, page identifiers everywhere else.
Which tone a round trip wears. A tenth of a second is where a person starts to notice waiting, and a second is where they start doing something else.
Hands the terminal to an editor, and takes back whatever was saved.
A path as a person would say it: qunitx-cli/lib/repl/session.ts for something in this project,
and the absolute path for anything outside it.
The lines of source, ending when it does — including when it ended before anyone asked.
The terminal escape sequence the GHOST SUGGESTION is drawn in — grey, so it reads as something offered rather than something typed.
What to SAY when the page has gone — the farewell, not the going.
The body, as much of it as was asked for.
A block of headers, one per line, with the names in the colour that means "this is what you came to find".
Everything about one connection: what was sent, what came back, and the body.
One connection on one line, for a list of them: 2m ago #3 200 GET /api/users.
The whole answer in one line:
200 OK · 101 bytes · 9ms | GET http://localhost:4000/api/users | #3.
What a request was for: GET http://localhost:4321/api/users.
Preloads that did not get the name they asked for, and what they answer to instead.
The lines of a session worth replaying: everything typed, minus the shell escapes.
Runs qunitx repl: opens a browser page, then reads, evaluates and prints in it until the input
ends. Resolves with the process exit code once everything is closed.
Paints the line AS IT IS TYPED, in the colours the theme gives each capture.
Shows what the line would come to, dimmed against the RIGHT MARGIN while it is still being typed.
zsh-style typeahead: the rest of the last matching line, greyed out after the cursor, Ctrl-F to take it.
Runs one shell command, streaming its output to the terminal as it arrives.
Which tone a body size wears. A terminal stops being comfortable around a hundred kilobytes and stops coping around a megabyte, so those are the two boundaries.
Which tone a status wears — the one place the four classes are decided.
Cuts the history file back to the history it is meant to hold.
How an answer to [Y/n] is read: Enter, or anything starting with y. Everything else is no.
What an edit leaves to run: the buffer where it moved, and nothing where it did not.
The same bytes with the terminal's answers to ITSELF dropped: mouse and cursor-position reports.
stdin, with Ctrl-K and Ctrl-J walking history — a NEW stream, which is what to read instead.
Usage
import * as mod from "lib/commands/repl/index.ts";