tmux連携
v0.10 で導入
tmux サブコマンドを使用することで、実行中のtmuxセッションから画面や履歴を直接吸い出してSVG化できます。
基本的な使い方
Section titled “基本的な使い方”tmux セッション内で別ウィンドウやペインを開くか、外側のシェルから実行します。
console2svg tmux capture -o tmux-current.svg--targetを指定しない場合、どのペインをキャプチャするか選択するメニューが表示されます。
スタイルオプションは captureモードと同様に指定できます。
console2svg tmux capture -d macos-pc -t github-dark -o tmux-current.svgペインの指定 (--target)
Section titled “ペインの指定 (--target)”--target オプションに対象のペイン識別子を指定します。
# ウィンドウ0のペイン1を指定console2svg tmux capture -o pane1.svg --target ":0.1"履歴の取得 (--history)
Section titled “履歴の取得 (--history)”過去のログを含めてキャプチャしたい場合は、--history に取得行数を指定します。
# 過去100行分の履歴を含めて生成console2svg tmux capture -o long-log.svg --history 100引数なしの場合、取得可能な全ての履歴を含めます。
console2svg tmux capture -o full-log.svg --historytmux live-server
Section titled “tmux live-server”tmuxのペインを対象に、live-server機能を使用することもできます。各種引数はlive-serverと同じです。
console2svg tmux live-server