roadmap

Options A to E, in full

This appendix belongs to milestone 705 (the graphical terminal runs full-screen programs). It holds the full seven-question entries for options A to E. Option F has its own appendix. The shared answers to questions 2 and 4 are in the main document's Part 4.

A. Extend video_terminal

The list in Part 2. Estimate: 500 to 900 lines of engine code plus about as many of tests. This is an estimate by analogy, not a measurement. On 2026-10-18 the engine is 1,738 lines across six files (vt.rs 1,033), plus keymap.rs (572) and script.rs (352), and display_terminal.rs is 547. A second grid and a region-aware scroll touch line_feed, the damage record and the scrollback ring, which is where the risk is, not the sequence count.

  1. Considered instead: B, C, F and G, each under its own entry, and D for the ordering.
  2. See the shared answer in the main document.
  3. Prior art: xterm's control-sequence document and vttest define the behavior (not read here; named from memory). Every real engine in section C or B is an existence proof.
  4. See the shared answer in the main document.
  5. Cost: lines above, no new dependency, no new toolchain, host-testable in milliseconds. The release display_terminal is 18 KB of code and 717 KB of .data (the static grid) on aarch64, measured 2026-10-18; A adds to the code and, with a second grid, to the data.
  6. Fully reversible. No wire format changes, and the engine is behind display_terminal.
  7. Against B to E, yes at equal cost: it keeps the three-witness proof (pixel(x, y)) with no rebuild, and it is the only option with no dependency in the shipping graph. Against F and G, no: at equal cost an engine that passes 22 or 23 of vttest's 24 screens owns every program's output better than ours at 7. A's remaining argument is fewer moving parts.

B. libghostty-vt as a second engine behind the C seam

Everything below was read from ghostty-org/ghostty main on 2026-10-02, except where marked.

  1. Considered instead: A, which avoids the dependency and loses on completeness and on the milestone 23 demonstration; C, which is a parser only (below); and F, which reaches the same completeness in Rust without a toolchain.
  2. See the shared answer.
  3. Prior art read: the headers above. Ghostty's conformance history against vttest is claimed in notes/glyphs/libghostty-vt.md; I did not verify it.
  4. See the shared answer, including the stale "no allocation" line.
  5. Cost: a Zig 0.16 toolchain in the build (unmeasured), a pinned vendored tree under §18's policy, an allocator for the component, a cell-based expected-picture check (not estimated), and shim code (not estimated).
  6. Hard to reverse once programs rely on its behavior; easy to reverse before. A dependency in the shipping graph is the irreversible category in CLAUDE.md.
  7. Mostly yes. It is the option this tree already prefers for its milestone 23 claim, and the answer is less about effort than about whether the claim is worth a toolchain.

C. vte (the Rust crate)

Read from the 0.15.0 source (crates.io, Apache-2.0 OR MIT, 57 KB).

  1. Considered instead: A. It is A with a different front half.
  2. See the shared answer.
  3. Prior art read: ansi.rs says it "was originally part of the alacritty_terminal crate", so the state half lives in a different crate.
  4. See the shared answer.
  5. Cost: the lines above, two dependencies, and the engine work of A on top.
  6. Reversible before use; a dependency in the shipping graph once used.
  7. No. At equal cost A wins over C, since C adds a dependency to save a parser that is already written and tested here. C is listed so that a refusal, if it comes, has its reason on record.

D. A then B, or B then A

The two are not exclusive: B behind the seam does not remove A, and notes/glyphs.md already recommends keeping video_terminal as the reference the foreign engine is checked against.

  1. Considered instead: A alone, B alone. Already above.
  2. to 4. See the shared answers in the main document.
  3. Cost: the sum, spread over two lanes; the first delivers the goal.
  4. As reversible as each half.
  5. For A then B, yes at equal cost, because the first step delivers the measure. For B then A, the ordering is effort-neutral and I would not choose it.

E. Replace video_terminal with libghostty-vt

B without keeping A's engine: libghostty-vt becomes the only VT engine behind display_terminal, and video_terminal is retired (or kept only as a host-side test fixture). Facts about the library are those in B; this entry is about what losing the second engine costs and buys.

  1. Considered instead: A (keeps the second engine, costs the lines), B and D (keep both engines).
  2. to 4. See the shared answers in the main document.
  3. Cost: B's toolchain, vendoring and allocator costs, plus the cell-based check, minus the engine lines of A. Not measured beyond what B records.
  4. Harder to reverse than B: once video_terminal is gone, bringing it back is a rewrite, and the display path depends on a library whose API is declared unstable.
  5. Not decided here. At equal cost I would still keep two engines, because the differential check is the claim; E wins only if that claim is not worth the second engine's upkeep.