[GH-ISSUE #108] ^[[?1;2c printed to terminal when playing locally #699

Closed
opened 2026-03-15 08:54:58 +03:00 by kerem · 1 comment
Owner

Originally created by @ku1ik on GitHub (Jun 22, 2015).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/108

Terminal itself is putting these characters on vim's stdin (emulating user typing them) during the recording, so vim can read and interpret them. It's a way of asking the terminal for its parameters. During playback asciinema sends the same escape codes that were emmited by vim but doesn't read from stdin so they stay in your prompt after asciinema finishes playback.

A potential solution would be to read everything from stdin during playback and ignore it.
Reading from stdin during playback would be also a good opportunity to add pause/resume functionality (space bar).

Originally created by @ku1ik on GitHub (Jun 22, 2015). Original GitHub issue: https://github.com/asciinema/asciinema/issues/108 Terminal itself is putting these characters on vim's stdin (emulating user typing them) during the recording, so vim can read and interpret them. It's a way of asking the terminal for its parameters. During playback asciinema sends the same escape codes that were emmited by vim but doesn't read from stdin so they stay in your prompt after asciinema finishes playback. A potential solution would be to read everything from stdin during playback and ignore it. Reading from stdin during playback would be also a good opportunity to add pause/resume functionality (space bar).
kerem 2026-03-15 08:54:58 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

I like the solution of reading from (and ignoring) stdin more than the solution I proposed in https://github.com/asciinema/asciinema.org/issues/239. It would also keep users from messing up the playback by accidentally hitting the keyboard during a playback.

<!-- gh-comment-id:289062146 --> @cassdeckard commented on GitHub (Mar 24, 2017): I like the solution of reading from (and ignoring) stdin more than the solution I proposed in https://github.com/asciinema/asciinema.org/issues/239. It would also keep users from messing up the playback by accidentally hitting the keyboard during a playback.
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#699
No description provided.