Skip to content

Examples

Rather than explaining the features at length in text, it is probably better to show real examples. This page contains many real usage examples.

Let’s capture the command’s own help text.

Terminal
console2svg capture -- console2svg

console2svg

Details

This uses a macOS Terminal-style frame, specifies the width, and also includes the executed command name.

Terminal
console2svg capture -w 100 -c -d macos-pc -- fastfetch

fastfetch

Details

You can make it quite stylish.

Terminal
console2svg capture -w 100 -h 10 -c -d macos-pc \
--background "image1.png" --opacity 0.95 \
-- oh-my-logo "console2svg" mint --filled --letter-spacing 0

oh-my-logo "console2svg" mint --filled --letter-spacing 0

Details

Terminal
console2svg capture -c -d -v -- sl

sl

Terminal
console2svg capture -w 100 -h 24 -c -d macos-pc -v --timeout 5 -- cmatrix -ab

cmatrix -ab

Terminal
console2svg capture -w 160 -h 28 -c -d -v --timeout 5 --sleep 0.5 -- nyancat

nyancat

Details

By playing back a replay file prepared in advance, you can reproduce the same output even in CI environments.

Terminal
console2svg replay ./replay.json -w 80 -h 20 -v -c -d macos -- bash

console2svg replay ./replay.json -w 80 -h 20 -v -c -d macos -- bash

Details

Start recording with the F9 key, then press F9 again to stop recording.

Terminal
console2svg interactive -d macos -o ./captures/output.svg

console2svg interactive -d macos -o ./captures/output.svg

Details

Specify any theme you like, whether built-in or custom.

Terminal
console2svg capture -w 100 -h 24 -c -d macos -t nord --timeout 2 -- cmatrix -ab

cmatrix -ab

Terminal
console2svg capture -w 100 -h 24 -c -t cyberpunk-pc --timeout 2 -- cmatrix -ab

cmatrix -ab

Details

Terminal
cat <<EOF > .env
CURRENT_DIRECTORY=$(pwd)
APP_SECRET_TOKEN=1234567890thankyou
HTTP_PROXY=http://user:password@10.0.0.1:8080
CONNECTION_STRING=Server=localhost;Database=myDataBase;User Id=myUsername;Password=myPassword;
MYSQL_CONNECTION_URL=mysql://myUsername:myPassword@localhost:3306/myDatabase
GIT_USERNAME=hidden_truth_name
GIT_EMAIL_ADDRESS=hidden_truth_name@example.com
COMMON_HASH=0123456789abcdef0123456789abcdef
SECRET_HASH=fedcba9876543210fedcba9876543210
EOF
console2svg capture -80 -h 14 -d macos-pc -t github-dark -- cat .env

cat ../../.env

Details