[GH-ISSUE #648] playback is incorrect #946

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

Originally created by @electroglyph on GitHub (Aug 30, 2024).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/648

here's what the original output looks like in xterm.js:

xtermjs

here's what asciinema playback looks like:

playback

here's a snippet of the JSON i'm trying to play:

{"version":2,"width":111,"height":32,"timestamp":1724973994,"duration":6.375,"title":"xtermia recording"}
[0,"o",">"]
[0.861,"o","\r\u001b[0J>"]
[0.861,"o","\r\u001b[0J>l\u001b7\u001b[38;5;243mook\u001b[0m\u001b8"]
[0.922,"o","\r\u001b[0J\u001b[38;5;220ml\u001b[0m\n"]
[0.923,"o","\r\u001b[0J\u001b[1m\u001b[36mXYZLimbo(#3)\u001b[0m\nWelcome to \u001b[1m\u001b[37mAI Grotto\u001b[0m!\nInsert tutorial stuff here.\n\u001b[1m\u001b[37mExits:\u001b[0m n\r\n\u001b[0m>\u001b7\u001b[48;5;24ml\u001b[0m\u001b8"]
[2.218,"o","\r\u001b[0J>"]
[2.218,"o","\r\u001b[0J>h\u001b7\u001b[38;5;243mome\u001b[0m\u001b8"]
[2.363,"o","\r\u001b[0J>he\u001b7\u001b[38;5;243mlp\u001b[0m\u001b8"]
[2.756,"o","\r\u001b[0J>hel\u001b7\u001b[38;5;243mp\u001b[0m\u001b8"]
[2.842,"o","\r\u001b[0J>help"]
[3.346,"o","\r\u001b[0J\u001b[38;5;220mhelp\u001b[0m\n"]

https://asciinema.org/a/Z3LoM5c2RQzgwEGCtK4k3RKHt

am I doing something wrong?

Originally created by @electroglyph on GitHub (Aug 30, 2024). Original GitHub issue: https://github.com/asciinema/asciinema/issues/648 here's what the original output looks like in xterm.js: ![xtermjs](https://github.com/user-attachments/assets/844ef237-7a84-4297-ae68-6c3d988c5818) here's what asciinema playback looks like: ![playback](https://github.com/user-attachments/assets/4d6b1467-e09d-4212-9ec0-f93e4f406315) here's a snippet of the JSON i'm trying to play: ``` {"version":2,"width":111,"height":32,"timestamp":1724973994,"duration":6.375,"title":"xtermia recording"} [0,"o",">"] [0.861,"o","\r\u001b[0J>"] [0.861,"o","\r\u001b[0J>l\u001b7\u001b[38;5;243mook\u001b[0m\u001b8"] [0.922,"o","\r\u001b[0J\u001b[38;5;220ml\u001b[0m\n"] [0.923,"o","\r\u001b[0J\u001b[1m\u001b[36mXYZLimbo(#3)\u001b[0m\nWelcome to \u001b[1m\u001b[37mAI Grotto\u001b[0m!\nInsert tutorial stuff here.\n\u001b[1m\u001b[37mExits:\u001b[0m n\r\n\u001b[0m>\u001b7\u001b[48;5;24ml\u001b[0m\u001b8"] [2.218,"o","\r\u001b[0J>"] [2.218,"o","\r\u001b[0J>h\u001b7\u001b[38;5;243mome\u001b[0m\u001b8"] [2.363,"o","\r\u001b[0J>he\u001b7\u001b[38;5;243mlp\u001b[0m\u001b8"] [2.756,"o","\r\u001b[0J>hel\u001b7\u001b[38;5;243mp\u001b[0m\u001b8"] [2.842,"o","\r\u001b[0J>help"] [3.346,"o","\r\u001b[0J\u001b[38;5;220mhelp\u001b[0m\n"] ``` https://asciinema.org/a/Z3LoM5c2RQzgwEGCtK4k3RKHt am I doing something wrong?
kerem closed this issue 2026-03-15 11:06:03 +03:00
Author
Owner

@ku1ik commented on GitHub (Sep 16, 2024):

I've replayed your recording in several terminals with asciinema play https://asciinema.org/a/Z3LoM5c2RQzgwEGCtK4k3RKHt and in all of them the output looks the same as in asciinema web player (which is the same as on your 2nd screenshot). I tested on xterm (not xterm.js), Gnome Console, Alacritty.

<!-- gh-comment-id:2353587524 --> @ku1ik commented on GitHub (Sep 16, 2024): I've replayed your recording in several terminals with `asciinema play https://asciinema.org/a/Z3LoM5c2RQzgwEGCtK4k3RKHt` and in all of them the output looks the same as in asciinema web player (which is the same as on your 2nd screenshot). I tested on xterm (not xterm.js), Gnome Console, Alacritty.
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#946
No description provided.