Asciinema: [Feature request] Record multiple tty at the same time

Created on 10 Dec 2017  ·  9Comments  ·  Source: asciinema/asciinema

Hi

Y'all know asciinema works (or uses) the script command (man script if you don't know it)

So the idea would be to add X arguments, being tty paths

It will then start recording those two (or more) terminals at the same time

After exiting (on the terminal that launched the recording), when pressing enter to upload, it would upload all the record files to the website

So the website should also support playing multiple recordings at the same time

Displaying all the recorded sessions on one page

I doubt much people would need this feature except me tho

Most helpful comment

Hey @Bux42!

That's interesting idea :) And yes, even though cool thing, I believe there wouldn't be many people using this to justify implementation and maintenance of this feature.

However, if you'd like to record multiple ttys, maybe you could record tmux session with multiple splits?

All 9 comments

Hey @Bux42!

That's interesting idea :) And yes, even though cool thing, I believe there wouldn't be many people using this to justify implementation and maintenance of this feature.

However, if you'd like to record multiple ttys, maybe you could record tmux session with multiple splits?

TMux is not something I'd like to learn in order to record things, personally. I have a project right now that uses about 5 different panes and I'd love to be able to record all of them at once for a demonstration at work.

This would be really cool, to be honest. @sickill if you can point me in the right direction insofar as where changes might need to go, I can take a whack at this (unless some of it will require changes to closed source, of course).

I think about this feature _frequently_.

@sickill That would be great, but the tmux split workflow doesn't actually work in asciinema. asciinema-player and other renderers like termtosvg seem to garble recorded sessions that involve split windows in tmux. I suspect this is because screen clearing for a particular pane isn't getting propagated to the asciicast output somehow, but whatever the cause may be you usually end up with a jumbled overlap of characters that can't be understood.

@masaeedu I did many successful recordings of sessions with tmux involved, and it worked fine, so I'm surprised to hear you experienced problems here. Can you point me to an example session (on asciinema.org) which doesn't replay well in the web player but does ok when replayed in-terminal (asciinema play filename.cast)?

I'm not really a tmux expert, but it doesn't seem to work well at all with asciinema. The .cast only has one pane (the one I launched asciinema from). Am I doing something wrong?

@sickill Sorry I didn't get back to you about this before. Unfortunately I just stopped using the multi-pane workflow, so I don't recall what was going wrong.

@dsyer I believe the way to get multiple panes is to start asciinema directly in your terminal emulator (i.e. outside tmux) and then attach to your tmux session. See the link @sickill provided earlier in the thread that shows how to do this.

FWIW years later and it's the lack of this feature that made me stop using asciinema.

@masaeedu that works, thanks. I wish there was an easy way to skip the "tmux attach/tmux detach" at the beginning and end of the cast.

Same here. Multi-tab recording session would be great but I guess I'll go for the tmux solution, then.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

karelbilek picture karelbilek  ·  9Comments

Edo78 picture Edo78  ·  5Comments

KurtPfeifle picture KurtPfeifle  ·  3Comments

TyrfingMjolnir picture TyrfingMjolnir  ·  7Comments

lukehinds picture lukehinds  ·  5Comments