mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-24 23:45:50 +03:00
[GH-ISSUE #108] ^[[?1;2c printed to terminal when playing locally #699
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#699
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).
@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.