Shoddy Documentation
What each mill asks of a terminal window, and which terminals pass
A Shoddy program runs in a terminal window of the operating system's
own: under mill run, and under the debugger, where the VS Code
extension opens that window rather than using the editor's integrated
terminal (VS Code, section 3). This page
is the record behind that rule. It lists, per mill, what the program asks
of the terminal it runs in, and holds the result of trying each terminal.
Run it before a release, on each platform the release names, and write
the result and the date into the table.
./build.sh build
(./build.ps1 build on Windows)../build.sh run in mills/NAME
runs it exactly as the extension's Run button does.Keyboard and screen are read from each mill's sources: which machines it includes and which input words it calls. Three mills take their keyboard through a scribbler window, which the terminal never sees; the terminal shows only their text.
| Mill | Keyboard | Screen | What to check | Terminal.app (macOS) | Windows Terminal | Windows console |
|---|---|---|---|---|---|---|
| pac-vt100 | Raw keys through InKey, decoded by the vt100 machine's
EvalKey: the arrow keys (as the cursor-key sequences the
terminal sends), W A S D, Q and Esc to quit. |
Escape sequences from the vt100 machine; needs at least 80 columns by 26 rows. | Arrows steer; WASD steer; Esc alone quits without a delay; the maze draws in place with no scrolling; the window is at least 80x26. | |||
| weather-glass | None: the program takes its input from its arguments. | Escape sequences from the vt100 machine. | The display draws in place; nothing prints as raw ESC
characters. |
|||
| thornle | Lines, through InputLine: a guess, or Q or
QUIT to leave; at the menu, P, C or
Q. |
Escape sequences from the vt100 machine, with 24-bit colour; needs at least 80 columns by 24 rows. | The board draws in place with no scrolling; the tiles show madder,
indigo and drab; the empty tiles' dots are visible; C turns
colour off and the marks become [A] and (A). |
|||
| halifax | Lines, through InputLine. The dictionary carries the vt100
words (VTCLEAR, VTGOTO, VTEVALKEY) and the
window words (scribbler, turtle, plotter), so a session can use either. |
Plain lines; escape sequences when a vt100 word is used; windows when a window word is used. | A line is read and echoed; VTCLEAR clears the screen; a
scribbler word opens a window and the session continues when it is
closed. |
|||
| sparky | Lines, through InputLine; the same dictionary as halifax at a
terminal. |
As halifax. | As halifax. | |||
| mungo-caverns | Lines, through InputLine and Input. |
Plain lines. | A command is read and answered; a save names a file and the file appears beside the program. | |||
| oregon | Lines, through Input. |
Plain lines. | Every prompt reads a line; a number typed at a numeric prompt is taken. | |||
| iris | Lines, through Input. |
Plain lines. | A prompt reads a line. | |||
| demographics | Lines, through Input. |
Plain lines. | A prompt reads a line. | |||
| emley-moor | None. | Plain lines. | The output prints whole. | |||
| simplex-from-mps | None: files and arguments. | Plain lines. | The output prints whole. | |||
| devils-dust | A scribbler window's keys, classified by the keys machine; sound through the buzzer. | A scribbler window; the terminal shows text only. | The window opens; its keys steer; sound plays; closing the window ends the program and the terminal returns to its prompt. | |||
| invaders | A scribbler window's keys, classified by the keys machine; sound through the buzzer. | A scribbler window; the terminal shows text only. | As devils-dust. | |||
| tally | A scribbler window's keys (Esc closes). | A scribbler window and plotter output; the terminal shows text only. | The window opens; Esc closes it; the program ends. |
The items above are the ones that have differed between terminals, or between a terminal and an editor's integrated one. Each is a question the table answers for a named terminal rather than a claim about it.
F1, F5 and chord prefixes for
itself; a program never sees them. A terminal of the operating system's own
may keep some too (a tab key, a search key). The check: the keys the mill
names reach it.EvalKey recognises the application-mode ones.ESC byte starts a sequence delays a bare Esc. The check: Esc
quits without a noticeable wait.ESC[ text.