mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 07:55:51 +03:00
[GH-ISSUE #192] Strange escape characters recording ptpython #139
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#139
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 @tiagocoutinho on GitHub (Feb 19, 2017).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/192
I use asciinema to record a ptpython console.
The recorded video shows what I assume are strange escape characters in each ptpython prompt.
I attach a simple record showing the problem issue-ptpython.json.zip.
Here is what I used in the command line:
$ asciinema rec -c "ptpython" -w 0.25 -t "Issue with ptpython" issue-ptpython.jsonTo view the problem simply download the attached file and do
$ asciinema play issue-ptpython.jsonI am using:
@cassdeckard commented on GitHub (Mar 24, 2017):
I've duplicated this on OSX and confirmed it's a duplicate of #108
When following the steps to duplicate, if you look in the
issue-ptpython.jsonfile that is generated, it contains twoCSI 6 n(CPR) control sequences that are causing the terminal to respond with an escape sequence encoding the cursor position.@tiagocoutinho, as a workaround you should be able to use the
fix-asciicastscript in this gist to fix your offending JSON files. I used it on the JSON file I reproduced the issue with and found that it fixed the issue.