Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge all frames (aka one static SVG) #18

Open
adius opened this issue Jan 20, 2018 · 7 comments
Open

Merge all frames (aka one static SVG) #18

adius opened this issue Jan 20, 2018 · 7 comments
Labels

Comments

@adius
Copy link

adius commented Jan 20, 2018

Would be cool to be able to merge the whole cast to one static SVG.
(similar to https://github.com/misc0110/asciicast2vector)

@marionebl
Copy link
Owner

marionebl commented Jan 20, 2018

Unfortunately asciicast2vector produces SVG that render like this on my machine:

screen shot 2018-01-20 at 23 51 16

I am not quite sure how this should look like - would this new mode render all the frames of an asciicast under each other vertically?

@adius
Copy link
Author

adius commented Jan 20, 2018

No just the final frame when everything has been typed.

@adius
Copy link
Author

adius commented Jan 20, 2018

Well maybe there should be options for both use cases, but I guess just the final frame is the most common.

@marionebl
Copy link
Owner

Rendering a specific frame is possible with the --at flag:

svg-term --cast=rfS1M5ynKm1hGaBqJYJj0mGCi --window --at=43250 --out=screenshot.svg

Produces:

@adius
Copy link
Author

adius commented Jan 21, 2018

Thanks! I feel like this is such a common use case, it should maybe have it's own flag?

@marionebl
Copy link
Owner

marionebl commented Jan 21, 2018

Some idea what that flag would be and do exactly?

--last  render last frame statically

I am not totally convinced this is worth the effort - you could achieve the very same with --at and very high values.

@adius
Copy link
Author

adius commented Jan 21, 2018

you could achieve the very same with --at and very high values

That's what I thought. Except I misjudged what high values means 😅

Also it's act as documentation that this is even possible. Took me some time to figure out that I can misuse --at. I like your --last proposal 👍 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants