[GH-ISSUE #194] terminal control artifacts w/ ptpython (prompt_toolkit?) #144

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

Originally created by @yarko on GitHub (Feb 22, 2017).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/194

recording vs playback when using ptpython as a repl being recorded works pretty well (even as the file size is large) --- but for newlines after a repl command is evaluated: there are terminal control artifacts.

the playback pattern emitted (which is not part of the recording) is, for example, of the form:

^[[{n};1R

where {n} is some variable number (I've seen, briefly, {18..22}).

As a sanity check, it seems to work ok with bpython.

asciinema pip installed version 1.3.0, under python 3.6.0 on ubuntu 16.04

Originally created by @yarko on GitHub (Feb 22, 2017). Original GitHub issue: https://github.com/asciinema/asciinema/issues/194 recording vs playback when using `ptpython` as a repl being recorded works pretty well (even as the file size is large) --- but for newlines after a repl command is evaluated: there are terminal control artifacts. the playback pattern emitted (which is not part of the recording) is, for example, of the form: ^[[{n};1R where {n} is some variable number (I've seen, briefly, {18..22}). As a sanity check, it seems to work ok with `bpython`. asciinema pip installed version 1.3.0, under python 3.6.0 on ubuntu 16.04
kerem closed this issue 2026-02-25 20:32:49 +03:00
Author
Owner

@ku1ik commented on GitHub (Feb 22, 2017):

I think this may be related to #108.

<!-- gh-comment-id:281803641 --> @ku1ik commented on GitHub (Feb 22, 2017): I think this may be related to #108.
Author
Owner

@tiagocoutinho commented on GitHub (Feb 23, 2017):

I pretty sure it is the same as #192. Although #192 might be related to #108.

<!-- gh-comment-id:282037334 --> @tiagocoutinho commented on GitHub (Feb 23, 2017): I pretty sure it is the same as #192. Although #192 might be related to #108.
Author
Owner

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

This is definitely a duplicate of #192 which is itself a duplicate of #108. I suggest closing this issue and #192 and focusing on #108.

<!-- gh-comment-id:289061431 --> @cassdeckard commented on GitHub (Mar 24, 2017): This is definitely a duplicate of #192 which is itself a duplicate of #108. I suggest closing this issue and #192 and focusing on #108.
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#144
No description provided.