- Start a new tmux named session
tmux new -s terminal-capture
- Split the screen using these commands,
- vertical split "
- horizontal split %
- To navigate between the panes,
a. To goto Left pane
<C-b> left-key
b. To goto Right pane<C-b> right-key
c. To goto Top pane<C-b> up-key
d. To goto Down pane<C-b> down-key
- Detach the session
tmux <C-b>+d
- Record the tmux session with asciinema
asciinema rec -c "tmux attach -t terminal-capture"
- Detach the tmux session, save the recording and convert it into gif
- Enjoy !!!
Excellent guide, thanks for writing this up!