Skip to content

Agg appears to cut off the last column of the recording? #316

Closed

Description

@AhoyISki

Describe the bug
When I record with asciinema rec, and play it with asciinema play, it shows all the columns that were recorded. When I pass it to agg, it cuts out the last column for some reason

To Reproduce
Steps to reproduce the behavior:

  1. asciinema rec test
  2. `agg test test.gif
  3. See error

Expected behavior
It should not cut out the last column

Versions:

  • OS: Arch Linux x86_64
  • agg: 1.7.0

Additional context
Here's an example of a generated gif:

Image

And the recording that generated it:

rec.zip

You will notice that at the bottom right corner, in the recording it shows the number of lines, but in the gif, that's cut out for some reason.

Activity

  1. ku1ik commented on May 5, 2026

    @ku1ik
    Contributor

    I found out that this is related to cursor positioning at the edge with auto-wrap mode off, followed by EL sequence.

    I replayed your recording in several terminal emulators, all set to 96x25 size (the same as your recording) to see how they handle this case:

    • Ghostty - last column cut off
    • iTerm2 - last column visible
    • Terminal.app - last column cut off
    • xterm - last column cut off
    • alacritty - last column visible
    • Gnome Console - last column visible
    • kitty - last column visible
    • WezTerm - last column cut off

    It's 50/50... 😅

    avt (agg's virtual terminal) typically follows the majority's behavior, and in this case there isn't a clear consensus between terminal emulator implementers it seems. I don't remember if avt's current behavior was intentional or just happened to be implemented like this....

    Anyway, there isn't a good answer here I'm afraid.

  2. transferred this issue fromasciinema/aggon May 30, 2026
  3. locked and limited conversation to collaborators on May 30, 2026
  4. converted this issue into a discussion #317 on May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions