fix: proper terminal buffer save/restore with full pyte screen state

Save complete pyte screen state (characters, colors, attributes,
cursor position, modes) via pickle serialization instead of just
plain text. Restore via direct buffer manipulation + full redraw.
Fixes broken/garbled layout when switching between servers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-02-24 03:16:47 -05:00
parent bf5c4b14a4
commit afa75b6d9c
3 changed files with 79 additions and 18 deletions