Skip to content

Instantly share code, notes, and snippets.

@tsanghan
Forked from worldofprasanna/terminal-capture.md
Created December 22, 2021 15:32
Show Gist options
  • Save tsanghan/7052d70889fe547a795941408db737a1 to your computer and use it in GitHub Desktop.
Save tsanghan/7052d70889fe547a795941408db737a1 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