Fine-tuning output
These options fine-tune the detailed layout and displayed content of SVG output.
SVG text fitting (--adjust)
Section titled “SVG text fitting (--adjust)”You can control the SVG lengthAdjust attribute to reduce character-width differences caused by viewers or font-rendering environments.
spacing(default): Adjusts only the spacing between characters. This prevents glyph distortion.spacingAndGlyphs: Also stretches or shrinks the glyph widths themselves so they line up exactly with terminal cells.
console2svg capture --adjust spacingAndGlyphs -- btopHeader and prompt adjustment
Section titled “Header and prompt adjustment”You can customize the command display added by -c (--with-command).
--prompt <text>: Changes the prompt symbol (default:$or#).--header <text>: Replaces the entire command-line header with the specified string.
# Change the prompt to ❯console2svg capture -c --prompt "❯ " -- echo "Hello"
# Replace the entire header with the specified stringconsole2svg capture --header "user@server:~$ ./build.sh" -- ./build.sh