asciinema / agg

asciinema gif generator
Apache License 2.0
1.12k stars 38 forks source link

Initial frame erroneously shows a bunch of later output #45

Closed badeball closed 1 year ago

badeball commented 1 year ago

Describe the bug

The resulting Gif's initial frames contain a bunch of output which in reality takes much longer to actually be outputted.

To Reproduce

Steps to reproduce the behavior:

  1. Download https://asciinema.org/a/Muvp1oofnYotCnXHTpDezCYtA
  2. Use agg to render into a Gif: agg 589983.cast 589983.gif
  3. Watch the Gif: while the ascii recording on the web correctly shows that the command takes a while to get started, this isn't reflected in the Gif

589983

Expected behavior

For the recording as shown on the web and the rendered Gif to be somewhat similar.

Versions:

ku1ik commented 1 year ago

Good catch. I think we're using first print for the initial frame, while we need initial frame to be blank.

ku1ik commented 1 year ago

Just released 1.4.2 with a fix for this.

badeball commented 1 year ago

Excellent, thanks! It works splendidly.