Skip to content

Instantly share code, notes, and snippets.

@arunma
Forked from worldofprasanna/terminal-capture.md
Created January 3, 2024 04:48
Show Gist options
  • Save arunma/2c746d4eed37dad36d9c90acce7ab4bd to your computer and use it in GitHub Desktop.
Save arunma/2c746d4eed37dad36d9c90acce7ab4bd to your computer and use it in GitHub Desktop.
Multiple screen terminal capture using asciinema & tmux

Commands Reference

  1. Start a new tmux named session tmux new -s terminal-capture
  2. Split the screen using these commands,
  • vertical split <C-b>"
  • horizontal split <C-b>%
  1. To navigate between the panes,
  • To goto Left pane <C-b> left-key
  • To goto Right pane <C-b> right-key
  • To goto Top pane <C-b> up-key
  • To goto Down pane <C-b> down-key
  1. Detach the session tmux <C-b>+d
  2. Record the tmux session with asciinema asciinema rec -c "tmux attach -t terminal-capture"
  3. Detach the tmux session, save the recording and convert it into gif
  4. Enjoy !!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment