asciinema / asciinema

Terminal session recorder 📹

Home Page:https://asciinema.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replaying recording shows (newlines at every new character in kitty/alacritty) with a specific shell setup

AkechiShiro opened this issue · comments

Describe the bug
Replay looks like this :
image

To Reproduce
Steps to reproduce the behavior:
0. Open Kitty terminal

  1. asciinema rec -i 2 rec.rec
  2. Write commands
  3. If bash is used as a shell (in Kitty via the terminal, then the issue is gone/fixed temporarily)
  4. See error

Expected behavior
Replay should be replayed correctly in Kitty using Zsh and Powerlevel11k shell theme with a NerdFont patched.

Versions:

  • OS: ArchLinux
  • asciinema cli: asciinema 2.3.0

Additional contextAdd any other context about the problem here.

See 3.

Do you need the capture or will you be able to reproduce the issue ?

I believe #368 is the fix, why is it not yet merged in ?

I haven't tested the fix yet, but will soon.

#368 is not a fix that resolves the issue here, it just adds a warning. You would still get broken output if we merged it.

There's no easy fix for this, as you can't really fit longer lines (recorded) into shorter lines (current terminal width during playback).

The best we can do is to add the warning so user can expect corrupted output, but we can potentially detect if the corruption would happen (see #368 (comment) for the idea).