Produces empty SVG if stdin is closed
Author: nmattiaCreated Feb 21, 2019Updated Mar 4, 2019
If stdin is closed termtosvg will create a (mostly) empty svg. E.g. running this:
termtosvg -g 82x19 -c 'echo hello' out.svgwith closed stdin won't produce any frames. Instead one has to do something like this:
(tail -f /dev/null || true) | termtosvg -g 82x19 -c 'echo hello' out.svgwhich will produce an SVG file where we see "hello" being printed.
Source: nbedos/termtosvg