[PR #650] [MERGED] Add support for play -r. #1174

Closed
opened 2026-03-15 11:22:32 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/asciinema/asciinema/pull/650
Author: @gnachman
Created: 9/19/2024
Status: Merged
Merged: 5/6/2025
Merged by: @ku1ik

Base: developHead: resizing


📝 Commits (1)

📊 Changes

3 files changed (+37 additions, -3 deletions)

View changed files

📝 src/cli.rs (+4 -0)
📝 src/cmd/play.rs (+1 -0)
📝 src/player.rs (+32 -3)

📄 Description

The new -r or --resize option causes asciinema to send CSI 8 ; <width> ; <height> t for r commands in the Asciicast. This causes the terminal window to resize as it did during the recording. This commit also sets the initial size. Doing so causes recordings of interactive programs to render properly.

Resizing is off by default for backward compatibility.

I see this was discussed previously but as far as I can tell it was closed without being implemented.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/asciinema/asciinema/pull/650 **Author:** [@gnachman](https://github.com/gnachman) **Created:** 9/19/2024 **Status:** ✅ Merged **Merged:** 5/6/2025 **Merged by:** [@ku1ik](https://github.com/ku1ik) **Base:** `develop` ← **Head:** `resizing` --- ### 📝 Commits (1) - [`5ec65c9`](https://github.com/asciinema/asciinema/commit/5ec65c9a296aa73d9d5741cd4131ecc9d852f97c) Add support for play -r. ### 📊 Changes **3 files changed** (+37 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/cli.rs` (+4 -0) 📝 `src/cmd/play.rs` (+1 -0) 📝 `src/player.rs` (+32 -3) </details> ### 📄 Description The new `-r` or `--resize` option causes asciinema to send `CSI 8 ; <width> ; <height> t` for `r` commands in the Asciicast. This causes the terminal window to resize as it did during the recording. This commit also sets the initial size. Doing so causes recordings of interactive programs to render properly. Resizing is off by default for backward compatibility. I see this [was discussed](https://github.com/asciinema/asciinema/issues/198) previously but as far as I can tell it was closed without being implemented. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 11:22:32 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#1174
No description provided.