Linux command
termframe 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Capture command output as SVG
termframe -o [output.svg] -- ls --color=always
Auto-detect terminal size
termframe --width auto --height auto -o [out.svg] -- [command]
Use a specific color theme
termframe --theme "[Solarized Dark]" -o [out.svg] -- [command]
说明
termframe is a non-interactive terminal emulator that executes a command, renders its output in a virtual terminal session, and exports the result as an SVG file. It supports full color ranges (16, 256, truecolor), text styles, font embedding, and dark/light mode.
参数
- -o, --output _FILE_
- Output SVG file path.
- -W, --width _VALUE_
- Terminal width (number, auto, or range like 80..120).
- -H, --height _VALUE_
- Terminal height (number, auto, or range like 24..50).
- --theme _NAME_
- Color theme from iTerm2-Color-Schemes.
- --title _TEXT_
- Set window title.
- --font-size _SIZE_
- Adjust font size.
- --padding _VALUE_
- Configure window padding.
- --window-style _STYLE_
- Window style (e.g., macos, compact).
- --shell _SHELL_
- Specify shell to use.
- --config _FILE_
- Override configuration file path (use - to disable defaults).
FAQ
What is the termframe command used for?
termframe is a non-interactive terminal emulator that executes a command, renders its output in a virtual terminal session, and exports the result as an SVG file. It supports full color ranges (16, 256, truecolor), text styles, font embedding, and dark/light mode.
How do I run a basic termframe example?
Run `termframe -o [output.svg] -- ls --color=always` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o, --output _FILE_ do in termframe?
Output SVG file path.