nbedos / termtosvg

Record terminal sessions as SVG animations
https://nbedos.github.io/termtosvg/
BSD 3-Clause "New" or "Revised" License
9.71k stars 436 forks source link

Implement command CLI option (#83) #84

Closed nbedos closed 5 years ago

nbedos commented 5 years ago

As requested in #83 (but also #20 and #11), I've implemented a command line option to choose which program is recorded.

Usage is as simple as termtosvg -c 'ipython --print' to record an IPython interactive session for example. The argument of -c must be the a program followed by optional arguments.

Here's a sample animation made with this option: https://github.com/nbedos/termtosvg/blob/2bae49054076f5e686dd2fb5105a71b7c9c59fef/docs/examples/ipython_window_frame.svg