mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
On the alternate screen a shrink pulls the content up by the rows lost and leaves the cursor where it was. Rebind then saved that cursor, pinned the smaller band and restored -- and a restore under origin mode into a region that no longer holds the saved row lands on row 1 (measured). Claude Code draws its input box by relative moves from the cursor, so it painted the box at the top of the band over the transcript; on a one- or two-row tick the restore succeeded and the box was simply drawn that many rows under its own text. Every shrink, one way or the other. Report 1, reproduced on demand. RebindShrinkAlt restores while the region is still the full screen, scrolls the screen down by the scape's share of the shrink so the text's bottom is back on the band's bottom, moves the cursor up by the band's own shrink, saves again, pins the band, restores. Nothing in the band needs clearing. Alternate screen only; the main screen keeps drop. The model had to change before a test could see any of it: resizeAlt moved the cursor with the content (the main screen's rule) and DECRC restored the row verbatim. Both now follow the measurements. The new test draws the box, shrinks, feeds resizeSequence (extracted from Run so the test sends what production sends), redraws relatively and expects one box under the cursor: red before in seven geometries, green after; routing alt shrinks through the old Rebind turns it red again. No test pins the alt-only guard on the main screen, which is unmeasured there. The probe now calls RebindShrinkAlt itself: overlay in Terminal.app for a six-row shrink, a three-tick drag and a shrink followed by a grow. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NtoYrsT7EnxmaDCjF2Bc3p