tmux integration
Available since v0.10
Use the tmux subcommand to extract the screen or history directly from a running tmux session and convert it to SVG.
Basic usage
Section titled “Basic usage”Open another window or pane inside a tmux session, or run the command from an outside shell.
console2svg tmux capture -o tmux-current.svgIf --target is not specified, a menu appears for selecting the pane to capture.
Style options can be specified in the same way as in capture mode.
console2svg tmux capture -d macos-pc -t github-dark -o tmux-current.svgSelecting a pane (--target)
Section titled “Selecting a pane (--target)”Specify the target pane identifier with --target.
# Select pane 1 in window 0console2svg tmux capture -o pane1.svg --target ":0.1"Retrieving history (--history)
Section titled “Retrieving history (--history)”To capture previous output as well, specify the number of lines to retrieve with --history.
# Generate a capture including the previous 100 linesconsole2svg tmux capture -o long-log.svg --history 100With no argument, all available history is included.
console2svg tmux capture -o full-log.svg --historytmux live-server
Section titled “tmux live-server”You can also use the live-server feature for a tmux pane. Its arguments are the same as live-server.
console2svg tmux live-server