roadmap

Part 2: What the three programs need that is missing

This appendix belongs to milestone 705 (the graphical terminal runs full-screen programs); it holds the escape-sequence census and the replay measurement.

Escape-sequence census, taken on the host (macOS, TERM=xterm, 80x24, vim 9.1, less from the OS). The harness answered ESC[6n and ESC[>c like an xterm would.

program session sequences it sent that Vt does not act on
vim open, :split, scroll, :q! ?1049h/l (x1 each), r DECSTBM (x9, 1;24 and 1;11), >c (x1), 6n (x2), ?1h + ESC =, t (x4), ?2004h, ?1004h, >4;2m
less open, page, b, k, q ESC M reverse index (x24), ?1049h/l (x1 each), ?1h + ESC =

The inventory, each with how a program uses it.

top is the nearest to working. procps top uses clear, ed, el, cup, home, reverse, cursor hide and show, and autowrap off (top.c:160-179, 801-817); it enters no alternate screen. Its gap is DECAWM, which only matters when a line is wider than the grid.

What the replay measured. Each session was replayed through Vt and its final 24 rows compared with tmux capture-pane. vim, eight scenarios (open, G, ggdd, Ctrl-E, 5dd, and split-window variants): every run matched except the split-window Ctrl-E x3, Ctrl-Y case, which differed in 10 of 24 rows in two of three runs. less: opening and paging forward matched; backward scroll (b, and G then k) differed in every run, 22 of 24 rows. The harness is timing-sensitive (keys land 0.8 s apart against the oracle's 0.6 s), and I did not find out why vim agreed as often as it did, so read it as "the failures are real, the agreement is not a guarantee". The throwaway harness lives in the lane's scratch directory and is not committed.