nbedos / termtosvg

Record terminal sessions as SVG animations
https://nbedos.github.io/termtosvg/
BSD 3-Clause "New" or "Revised" License
9.71k stars 436 forks source link

Adds vertical spacing measured in character cells between successive frames #101

Closed rob-smallshire closed 5 years ago

rob-smallshire commented 5 years ago

This PR address issue #100 which occurs when using CSS animation. Content from a frame – in particular the cursor – can bleed into the bottom of the current frame. I think this is happening because the cursor is slightly more than one character cell high, and there is no free space between the frame of the animation as they are laid out in space.

This commit introduces one character cell of vertical space between successive frame when placing the animation frames, which avoids this problem.