Lurker News

Comments (79) 20 threads

Earlier comments
okket4 replies#
The example animation looks broken in Safari (including Tech Preview 59), works in Chrome 67 (of course), and in Firefox 61.

[Edit: This seems to be a macOS/driver bug affecting only some models]

cnlwsu#
all examples work for safari 11.0.3
AndrewStephens1 reply#
I don't see any problems with Safari 11.1.1 on macOSX or on mobile Safari on my iPhone.
okket#
Right. It works on my 2013 MacBookPro, but the drawing looks incomplete/broken on my 2015 Retina 5k iMac. Both run macOS 10.13.5.
The_suffocated#
It's broken on my 2014 MacBook Air with Safari 11.1.1. Works OK on Firefox and Chrome.
skykooler#
It also doesn't work in the Windows default browser, but I think that's an Edge case.
Pawamoy#
Sadly, I will not replace asciinema+svg-term-cli by termtosvg, because termtosvg takes the terminal size into account when recording, not when rendering. It means that I have to resize my terminal before recording, and that I will not be able to resize it differently for rendering. So if lines are wrapped, I cannot change the width to de-wrap them in the resulting SVG.

Asciinema does not care about your terminal size when recording. In fact you can even reduce it or hide it (if you automate the input). Then you render it with svg-term-cli with the width you feel it is best.

b0rsuk#
I'm very impressed - it combines two of my favourite technologies, Python and SVG. Three, in fact - including terminal. I will be watching it and tinkering with it.

It's written in modern Python and well documented. However, some functions are a bit monolithic: https://github.com/nbedos/termtosvg/blob/master/termtosvg/te...

dethos2 replies#
Cool. It is not very clear from the description so I will ask:

What are the advantages over "asciinema"?
At the moment I only see that it does not require a specific player (javascript for the web), on the other hand it seems you are not able to pause the "execution".

nbe#
Yes, there is no dependency on a specific player.

The output is an SVG animation so you can modify it as you want. For example you could add a last frame with the logo of your project.
Not being able to pause the animation is annoying, I will probably add some way to it with ECMAScript in the future.

4684499#
I think standalone is the most outstanding advantage. Many recordings of terminal are using asciiema or youtube, those links in a github readme.md file is a static screenshot instead of animated one, you have to click the link to watch the animation.

You can view the animation without javascript enabled, and it's media type is image, you don't even need to convert it to base64 to use it. It's like gif but relatively smaller and with more colors, and it's Scalable Vector.

Load more comments