Same escape processing as polled output, so a harness can mirror its
own command output into a live terminal pane. Tested by feeding a
marker line and reading it back from the grid.
KryTerm spawns $SHELL under a pseudoterminal, writes keys, polls a screen
grid, and resizes with TIOCSWINSZ. CSI cursor and erase handling. Windows is
a no-op stub. Includes a round-trip test (spawn, write, read grid).