# 使用 Homebrew, MacPorts, Nix 安装 termshot

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

## 安装

```sh
sudo av install brew:termshot
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install termshot
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install termshot
```

  证据: MacPorts ports tree: graphics/termshot/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#termshot
```

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

## 软件包事实

- **软件包键:** brew:termshot
- **软件包管理器:** Homebrew
- **版本:** 0.6.1
- **来源摘要:** Creates screenshots based on terminal command output
- **主页:** <https://github.com/homeport/termshot>
- **仓库:** <https://github.com/homeport/termshot>
- **最后更新:** 2026-07-26T00:50:35+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- termshot (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.6.1
## 项目历史与用法

termshot is a Go command-line utility for turning terminal command output into PNG screenshots. Its project history sits in the same niche as carbon-style code-image generators and terminal documentation tools, but its README emphasizes preserving ANSI escape-code output from real commands rather than applying syntax highlighting to pasted text.

### 项目历史

The repository was created in November 2020 and published its first GitHub release, v0.1.0, in December 2020. The README describes the tool as a terminal-native way to generate screenshots and documents a workflow where users prefix a command with `termshot`, similar to tools such as `time`, `watch`, or `perf`.

Later releases added package-friendly installation and capture controls rather than changing the basic purpose. Release notes show continued maintenance through v0.6.x, including raw read/write support, configurable screenshot margins and padding, decoration toggles, and Go dependency updates.

### 采用历史

The official README documents Homebrew installation through the Homeport tap and prebuilt Darwin and Linux release binaries. In the input package facts, termshot also appears in Brew, MacPorts, and Nix, which is typical adoption for a small terminal utility useful to developers who generate README images, release notes, or reproducible CLI screenshots.

### 使用方式

Typical usage is `termshot <command>`, which runs the command in a pseudo terminal and writes `out.png` by default. The README documents flags for output file selection, clipboard output on supported platforms, editing captured output before rendering, showing or hiding command/window decoration, fixed column width, raw capture, and reading raw terminal output back into an image.

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

For package-maintainer and terminal-tool users, termshot is useful because it makes command output into a distributable artifact without requiring a GUI terminal screenshot workflow. It is especially relevant for Homebrew/Nix-style CLI culture where maintainers often want small, reproducible images for READMEs, changelogs, and examples.

### 时间线

- 2020: GitHub repository created.
- 2020: v0.1.0 published as the first GitHub release.
- 2024: v0.3.0 added README documentation and screenshot layout controls such as fixed columns and decoration/shadow toggles.
- 2025: v0.5.0 added raw read/write flags.
- 2026: v0.6.1 continued maintenance with dependency updates and configurable margin/padding work.

### Related projects

- The README explicitly positions termshot near web-based screenshot tools such as carbon.now.sh and codekeep.io/screenshot, but distinguishes it by reading ANSI escape-code rich text from command output.
- It overlaps with terminal recording and sharing tools such as termsvg and asciinema, but produces static PNG screenshots rather than terminal session recordings.

### 来源

- <https://api.github.com/repos/homeport/termshot>
- <https://api.github.com/repos/homeport/termshot/releases?per_page=100>
- <https://github.com/homeport/termshot>
- <https://raw.githubusercontent.com/homeport/termshot/main/README.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Nix - termshot: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/termshot/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - termshot: normalized package name match | MacPorts ports tree: graphics/termshot/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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