# 使用 Homebrew, Nix 安装 termsvg

查看 termsvg 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:termsvg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install termsvg
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#termsvg
```

  证据: nixpkgs package indexes: pkgs/by-name/te/termsvg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:termsvg
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/termsvg>
- **版本:** 0.11.0
- **来源摘要:** Record, share and export your terminal as a animated SVG image
- **主页:** <https://github.com/MrMarble/termsvg>
- **仓库:** <https://github.com/MrMarble/termsvg>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://github.com/MrMarble/termsvg/archive/refs/tags/v0.11.0.tar.gz>
- **最后更新:** 2026-07-26T00:50:35+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- termsvg (cli)
- termsvg (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.11.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/MrMarble/termsvg
- 检测到的最新版本: v0.11.0 (当前)
## 项目历史与用法

TermSVG is a Go CLI for recording, replaying, and exporting terminal sessions as animated SVG files. Its project history is tied to the asciinema ecosystem because it records in asciicast format and can interoperate with asciinema recordings.

### 项目历史

The GitHub repository was created in August 2020, with the first listed GitHub release, v0.1.1, appearing in February 2022. The README presents it as an all-in-one terminal recording tool with subcommands for recording (`rec`), playback (`play`), and SVG export (`export`).

Release notes show the project moving from initial releases in 2022 to later rendering and platform work: v0.7.0 added export customization, v0.8.0 added border/window rendering options, v0.9.0 added Windows support, and v0.10.0 added styled text support for bold, italic, dim, and underline.

### 采用历史

The README documents installation through precompiled GitHub releases, `go install`, and an install script, while the input package facts show Brew and Nix packaging. A 2022 project issue asking for Homebrew-style distribution framed package-manager availability as a way to broaden access beyond local compilation.

### 使用方式

TermSVG is used by running `termsvg rec <filename>` to record a terminal session, `termsvg play <filename>` to replay it, and `termsvg export <filename>` to generate an SVG. The README notes pause/resume during recording, command selection with `--command`, playback speed controls, idle-time limiting, output naming, and optional SVG minification.

### 为什么软件包爱好者会关心

Package-oriented users care about termsvg because animated SVG terminal demos fit naturally in READMEs and package pages without requiring hosted video. Its asciicast compatibility also lets it sit between terminal recorders and static documentation assets.

### 时间线

- 2020: GitHub repository created.
- 2022: v0.1.1 released and early v0.x releases established record/play/export behavior.
- 2023: v0.7.0 added export customization options.
- 2024: v0.9.0 added Windows support.
- 2025: v0.10.0 added bold, italic, dim, and underline text support.

### Related projects

- TermSVG explicitly uses the asciinema asciicast format and can export asciicast recordings to SVG.
- It is adjacent to termshot: termshot creates static PNG screenshots of command output, while termsvg records and exports terminal sessions as animated SVG.

### 来源

- <https://api.github.com/repos/MrMarble/termsvg>
- <https://api.github.com/repos/MrMarble/termsvg/releases?per_page=100>
- <https://github.com/MrMarble/termsvg>
- <https://github.com/MrMarble/termsvg/issues/1>
- <https://raw.githubusercontent.com/MrMarble/termsvg/master/README.md>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** termsvg
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - termsvg: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/termsvg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [termframe](https://pkg.so/zh-hans/brew/termframe/) - Shares pkgdb curated category or tags: cli, developer-tools, svg, terminal.
- [fzf](https://pkg.so/zh-hans/brew/fzf/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [neovim](https://pkg.so/zh-hans/brew/neovim/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [starship](https://pkg.so/zh-hans/brew/starship/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [television](https://pkg.so/zh-hans/brew/television/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [oh-my-posh](https://pkg.so/zh-hans/brew/oh-my-posh/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [glow](https://pkg.so/zh-hans/brew/glow/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [nano](https://pkg.so/zh-hans/brew/nano/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [vhs](https://pkg.so/zh-hans/brew/vhs/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, recording, terminal.
- [unicode-animations](https://pkg.so/zh-hans/npm/unicode-animations/) - Local package facts share a topical domain. Shared terms: animation, as, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/termsvg.yml](https://github.com/mxcl/pkgdb/blob/main/combined/termsvg.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
