marionebl / svg-term-cli

Share terminal sessions via SVG and CSS
MIT License
3.48k stars 116 forks source link

asciicast v2 can't run #Fix #32

Closed andy6804tw closed 6 years ago

andy6804tw commented 6 years ago

I'm use asciicast v2 from asciinema and download as .cast file but it can't run.

How to solve it? thx!

{ err: 'only asciicast v1 and v2 formats can be opened' }

/usr/local/lib/node_modules/svg-term-cli/lib/cli.js:406
            throw err;
            ^
only asciicast v1 and v2 formats can be opened
marionebl commented 6 years ago

Could you provide the link to the cast that does not work?

andy6804tw commented 6 years ago

@marionebl
https://asciinema.org/a/L70phJLaN06JYUrJsIBbOLgEc

marionebl commented 6 years ago

Works for me with this command: svg-term --cast L70phJLaN06JYUrJsIBbOLgEc. Looking at your screenshot more closely I guess you mixed up the --cast and --in flags.

andy6804tw commented 6 years ago

ok I got it. thanks!