asciinema / agg

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

Text underlining gets lost after conversion from `.cast` to `.gif` (it works in archived `asciicast2gif`) #22

Closed amalota closed 1 year ago

amalota commented 1 year ago

To reproduce, do:

run asciinema rec --command='echo -e "\033[4mlolxd"' /tmp/bug_repro.cast that results in:

image

then run agg /tmp/bug_repro.cast /tmp/bug_repro.gifs that results in gif without underline:

bug_repro_croped

ku1ik commented 1 year ago

Yep, agg currently doesn't render underline. Should be relatively easy to add though.

ku1ik commented 1 year ago

Meanwhile, there's actually alternative renderer implementation that you can use with --renderer resvg option which supports underline text.