fix: Char namedtuple save/restore — use blink not width, construct new Char objects

pyte.screens.Char is a namedtuple (immutable), so fields can't be
mutated directly. Also 'width' doesn't exist — the correct field is
'blink'. Now creates new Char(...) objects for buffer restoration.
Fixes server switching being completely broken (AttributeError on save).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-02-24 03:25:36 -05:00
parent afa75b6d9c
commit 4b505f39d1
2 changed files with 12 additions and 11 deletions