[GH-ISSUE #651] Feature Request: support step_backward in asciinema cli play command #947

Closed
opened 2026-03-15 11:05:58 +03:00 by kerem · 2 comments
Owner

Originally created by @xguo-prestolabs on GitHub (Sep 27, 2024).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/651

Hi, all,

asciinema cli only support 4 key bindings,

  1. quit (Ctrl+C)
  2. pause (SPACE)
  3. step/step_forward (DOT)
  4. next_marker ( ] )

I think we also need step_backward key, is there any reason for not adding support of this step_backward key?

Thanks.

Originally created by @xguo-prestolabs on GitHub (Sep 27, 2024). Original GitHub issue: https://github.com/asciinema/asciinema/issues/651 Hi, all, asciinema cli only support 4 key bindings, 1. quit (Ctrl+C) 2. pause (SPACE) 3. step/step_forward (DOT) 4. next_marker ( ] ) I think we also need step_backward key, is there any reason for not adding support of this step_backward key? Thanks.
kerem closed this issue 2026-03-15 11:06:04 +03:00
Author
Owner

@ku1ik commented on GitHub (Oct 20, 2024):

is there any reason for not adding support of this step_backward key?

Yup. The way asciinema play works doesn't allow rewinding / step back. Step forward is easy because we just need to write the next output event to STDOUT. Step backward would need to run a virtual terminal emulator inside your actual terminal to be able to obtain screen contents for each (past) frame, and then redrawing the whole terminal view. In other words, while step forward was trivial to implement, step backward is hard (possible but a lot of work).

<!-- gh-comment-id:2425104644 --> @ku1ik commented on GitHub (Oct 20, 2024): > is there any reason for not adding support of this step_backward key? Yup. The way `asciinema play` works doesn't allow rewinding / step back. Step forward is easy because we just need to write the next output event to STDOUT. Step backward would need to run a virtual terminal emulator inside your actual terminal to be able to obtain screen contents for each (past) frame, and then redrawing the whole terminal view. In other words, while step forward was trivial to implement, step backward is hard (possible but a lot of work).
Author
Owner

@ku1ik commented on GitHub (Jun 23, 2025):

Not planned at the moment.

<!-- gh-comment-id:2996392665 --> @ku1ik commented on GitHub (Jun 23, 2025): Not planned at the moment.
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#947
No description provided.