Skip to content

Include resize events during seek and step #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025

Conversation

gustavosbarreto
Copy link
Contributor

Fixes an issue where seeking or stepping over terminal resize events (“r”) was ignored by the recording driver, leaving the terminal layout out of sync.

Closes #284

Previously the recording driver’s seek() and step() loops only executed
output events ("o"), skipping any resize events ("r") between the starting
time and the target time. That causes the terminal to remain at the wrong
dimensions after seeking.

This change updates both loops in `src/driver/recording.js` to also process
"r" events, ensuring the terminal is resized correctly when jumping around.
@ku1ik
Copy link
Contributor

ku1ik commented May 6, 2025

Good catch, thanks!

@ku1ik ku1ik merged commit e6ec3e5 into asciinema:develop May 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resize events ignored during seek, causing terminal layout corruption
2 participants