mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
A pane running an editor or a pager answers `capture` with that program's screen, and the scrollback behind it is not in the reply. Measured: with a pane on the alternate screen the capture holds the alt-screen marker and not the main-screen one; after leaving it, the main scrollback is back and the alt content is gone, with only the echoed command left behind — which was typed on the main screen and belongs there. That is right, and it is the sort of right that reads as a bug from the outside. An agent that captures a pane mid-`less` gets a screenful and no history, and the obvious conclusion — output was lost — is wrong. So the help says which of the two you are holding, and that an empty-looking capture is usually a TUI in front of the scrollback. Also noted there: long output is trimmed from the oldest end, so a capture after a big build gives the end of it. `seq 1 200000` through a pane comes back as the last ~70 KB, ending at the prompt. Checked while here, and correct: `send` carries an 8000-character payload with nothing truncated.