zechris / asciinema-rec_script

Record 💭 comments and ❯ commands from from shell scripts in addition to their output.
https://github.com/asciinema/asciinema#rec-filename
GNU General Public License v3.0
28 stars 4 forks source link

Specify `cols` and `rows` ? #65

Open drupol opened 11 months ago

drupol commented 11 months ago

Hi!

I can't find a way to specify the cols and rows arguments that I usually pass to asciinema.

Can you tell me if it is possible to do it?

Thanks!

zechris commented 11 months ago

asciinema-rec_script builds up a script for asciinema to then run. Then any command line arguments passed in to it get passed down into the underlying call to asciinema rec script. (See here.)

So I would have assumed it would "just work".

If you make a script then run it with:

asciinema rec --command <script> --cols=<n> --rows=<n>

Does that work as expected for you?

Then how bout:

asciinema-rec_script <script> --cols=<n> --rows=<n>

(Hmm... perhaps the help needs a link to https://github.com/asciinema/asciinema#rec-filename ?)