fix: keep the terminal size across route changes #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/cache-xterm-size"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The session list is a separate route, so opening it unmounts xterm. On return, xterm started at 80×24 and the server attached the PTY at the same default size; both then resized to the real container, which is the visible reflow.
cols/rowsper window and font size in memory, and construct xterm at that size. A fit still runs before connecting and corrects a changed layout.ready, so a reattach at the same size sends no extra control frame.Tests: 54 unit + terminal/tmux/API integration pass;
npm run typecheckand build pass. On a temporary instance, the shell and returned shell both connected withcols=39&rows=39; no body scroll.Validated on a real iPhone after deploying the branch: the terminal keeps its size when leaving for the session list and returning; no fit/reflow flash. Ready to merge.