Shoddy Documentation

Terminal checklist

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.

How to run it

  1. Build the mill and the library: ./build.sh build (./build.ps1 build on Windows).
  2. For each mill below that reads the keyboard or draws with escape sequences, open the terminal named by the column and run the mill from its own folder: ./build.sh run in mills/NAME runs it exactly as the extension's Run button does.
  3. Press F5 on the mill's main file in VS Code as well, so the window the debugger opens is the one tried, with a breakpoint set somewhere the program reaches after reading a key.
  4. Try every item in the mill's “What to check” cell. A terminal passes when every item behaves; otherwise write what failed.

The mills

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.

MillKeyboardScreenWhat to checkTerminal.app (macOS)Windows TerminalWindows 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.

What terminals differ on

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.