screenreplay verifies terminal-restore behavior: it plays marker text
plus a captured session byte stream into a terminal emulator and
prints the final main-screen contents. If a TUI restores the screen
correctly (vim-like), the marker is visible again after exit.