Terminal renderer now detects corrupted frames on resume and forces a full reset instead of a partial repaint
When Claude Code's terminal interface resumes rendering after being paused (for example, returning to the alternate screen), it now checks whether the previously displayed frame looks corrupted. If corruption is detected, it forces a full reset of the display and marks the frame as contaminated. Otherwise, it repositions the cursor precisely before repainting, and adds an extra escape sequence to resume the correct display mode when the alternate screen is active.
This should reduce cases where the terminal display gets visually garbled after Claude Code's interface is suspended and resumed, by recovering cleanly instead of drawing over a bad frame.