跳转到内容

使用内置主题

自 v0.10 起可用

console2svg 包含开箱即用的内置主题。只需将主题 ID 传给 -t 或 --theme,即可更改终端配色和窗口外观。

Terminal
console2svg capture -w 100 -h 24 -c -t nord -- console2svg

console2svg

可以在内置主题概览中查看主题 ID。theme list 会同时显示内置主题和已安装主题。

Terminal
console2svg theme list
console2svg theme list --format markdown

-t 不仅可用于普通捕获,也可用于 replay、interactive 等接受主题的命令。

Terminal
console2svg replay ./session.json -t nord -- bash
console2svg interactive -t cyberpunk-pc -o capture.svg