$ term-transcript exec -I 300ms -T 100ms 'rainbow.sh --short' > bogus.svg && \
  sed -i -E -e 's/(fg4|bg13)//g' bogus.svg
# Mutate the captured output, removing some styles
$ term-transcript test -I 300ms -T 100ms --precise bogus.svg
# --precise / -p flag enables comparison by style
Testing file bogus.svg...
  [#] Input: rainbow.sh --short
= Base colors:
> black red green yellow blue magenta cyan white 
>                        ^^^^
= black red green yellow blue magenta cyan white 
= Base colors (bg):
= black red green yellow blue magenta cyan white 
> black red green yellow blue magenta cyan white 
>                             ^^^^^^^
Positions      Expected style          Actual style     
========== ====================== ======================
    36..40 --u-   (none)/(none)   --u-     blue/(none)  
  203..210 ----   (none)/(none)   ----   (none)/magenta*
Totals: passed: 0, errors: 1, failures: 0