[GH-ISSUE #198] Consider resizing terminal in asciinema play #146

Closed
opened 2026-02-25 20:32:49 +03:00 by kerem · 2 comments
Owner

Originally created by @ku1ik on GitHub (Mar 24, 2017).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/198

Given we know width/height of the terminal that was used during recording session, we can send \e[18;24;80t (replace 80 with actual width and 24 with height) to the terminal at the beginning of the playback.

This escape sequence is part of "Window manipulation" sequence family, described in XTerm documentation.

It isn't supported by all terminal emulators, but it seems to work with XTerm, Gnome Terminal, Terminal.app (macOS).

Originally created by @ku1ik on GitHub (Mar 24, 2017). Original GitHub issue: https://github.com/asciinema/asciinema/issues/198 Given we know width/height of the terminal that was used during recording session, we can send `\e[18;24;80t` (replace 80 with actual width and 24 with height) to the terminal at the beginning of the playback. This escape sequence is part of "Window manipulation" sequence family, described in [XTerm documentation](http://invisible-island.net/xterm/ctlseqs/ctlseqs.html). It isn't supported by all terminal emulators, but it seems to work with XTerm, Gnome Terminal, Terminal.app (macOS).
kerem 2026-02-25 20:32:49 +03:00
  • closed this issue
  • added the
    idea
    label
Author
Owner

@ku1ik commented on GitHub (Mar 24, 2017):

This could be a default behavior, with command line switch and config option to enable/disable this.

<!-- gh-comment-id:289050539 --> @ku1ik commented on GitHub (Mar 24, 2017): This could be a default behavior, with command line switch and config option to enable/disable this.
Author
Owner

@cassdeckard commented on GitHub (Mar 24, 2017):

Thanks for adding this, @sickill . I didn't realize the recorder was in a different repo.

<!-- gh-comment-id:289055206 --> @cassdeckard commented on GitHub (Mar 24, 2017): Thanks for adding this, @sickill . I didn't realize the recorder was in a different repo.
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#146
No description provided.