- Start a new tmux named session
tmux new -s terminal-capture - Split the screen using these commands,
- vertical split
<C-b>" - horizontal split
<C-b>%
- 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
- 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 !!!
Beautiful!