[PR #17182] Fix remaining buffer serialization bugs #31145

Open
opened 2026-01-31 09:45:23 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17182

State: closed
Merged: Yes


It may be more accurate to say: "Fix known remaining buffer
serialization bugs", but I'll try to be positive about my code.

Initially, the buffer is initialized with the default attributes,
but once it begins to scroll, newly scrolled in rows are initialized
with the current attributes. This means we need to set the current
attributes to those of the upcoming row before the row comes up.

This is related to #17074.

Validation Steps Performed

  • Persist and restore a buffer 10 times
  • All previous "Restore" status messages look correct
  • The escape sequences in the buffer file look correct
**Original Pull Request:** https://github.com/microsoft/terminal/pull/17182 **State:** closed **Merged:** Yes --- It may be more accurate to say: "Fix _known_ remaining buffer serialization bugs", but I'll try to be positive about my code. Initially, the buffer is initialized with the default attributes, but once it begins to scroll, newly scrolled in rows are initialized with the current attributes. This means we need to set the current attributes to those of the upcoming row before the row comes up. This is related to #17074. ## Validation Steps Performed * Persist and restore a buffer 10 times * All previous "Restore" status messages look correct ✅ * The escape sequences in the buffer file look correct ✅
claunia added the pull-request label 2026-01-31 09:45:24 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31145