asciinema / asciinema-player

Web player for terminal session recordings
https://docs.asciinema.org/manual/player/
Apache License 2.0
2.67k stars 266 forks source link

Incorrect playback for wide characters followed by cursor move #266

Open Chuvok opened 2 months ago

Chuvok commented 2 months ago

Describe the bug Display bug when wide characters (圍棋) are followed by a cursor move (ESC[78;23H).

Visible at 0:45 in the lower right corner. The frame should not have a gap. https://asciinema.org/a/zn3p0dsVCOQOzwY1S9gDfyaxQ

The test screen was generated by this program. https://github.com/Chuvok/tim.h/blob/master/test/test.c

To Reproduce Record the test screen and view recording on website.

Expected behavior Like in XTerm.

Screenshots Screenshot_2024-09-17_22-45-59 Screenshot_2024-09-17_22-46-26

Versions:

ku1ik commented 3 weeks ago

Thanks. This is likely related to this problem in avt: https://github.com/asciinema/avt/issues/19