macOS
brew install ansifilterlocal Homebrew formula metadata
sudo port install ansifilterMacPorts ports tree · textproc/ansifilter/Portfile · 来源: api.github.com
安装
brew install ansifilterlocal Homebrew formula metadata
sudo port install ansifilterMacPorts ports tree · textproc/ansifilter/Portfile · 来源: api.github.com
sudo apk add ansifilterAlpine Linux edge package indexes · ansifilter · 来源: dl-cdn.alpinelinux.org
sudo apt install ansifilterDebian stable package indexes · ansifilter · 来源: deb.debian.org
sudo dnf install ansifilterFedora Rawhide package metadata · ansifilter · 来源: dl.fedoraproject.org
nix profile install nixpkgs#ansifilternixpkgs package indexes · pkgs/by-name/an/ansifilter/package.nix · 来源: api.github.com
sudo zypper install ansifilteropenSUSE Tumbleweed package metadata · ansifilter · 来源: download.opensuse.org
概览
Strip or convert ANSI codes into HTML, (La)Tex, RTF, or BBCode
历史
ansifilter is a small command-line converter for text containing ANSI terminal escape sequences. It can strip escape codes or interpret them into formatted output such as HTML, RTF, TeX, LaTeX, BBCode, Pango Markup, and SVG.
The official changelog starts with ansifilter 0.1 on 25 October 2007. Early releases focused on terminal color escape handling, including xterm 256-color support by 1.0 in 2008 and license migration from GPLv2 to GPLv3 in 2009.
The tool gradually expanded from a filter into a format bridge. LaTeX, TeX, BBCode, Pango, SVG, true color, OSC 8 hyperlinks, and ANSI-art formats were added over time, while the README documents a single CLI that can read stdin or files and produce multiple markup formats.
ansifilter appears in many Unix package managers because it solves a packaging-adjacent problem: converting colorized CLI output into archival or publishable text. Its changelog references contributions and fixes from distro and user communities, including Portage warning fixes, shell completion scripts, and issues from both its older GitHub tracker and current GitLab tracker.
Typical use is pipeline-oriented: pass colorized command output through ansifilter to strip ANSI escapes, or choose an output format such as --html, --latex, --rtf, --svg, or --bbcode. The README also documents --tail for following log files and ANSIFILTER_OPTIONS for default CLI options.
For package users, ansifilter is a handy companion to grep, test logs, CI logs, terminal captures, and ANSI-art files. It is deliberately not a credentials-bearing tool and has no documented default config file.
Package nerds care about ansifilter because it lives at the boundary between terminals and documentation. It turns the color and formatting conventions emitted by Unix commands into artifacts suitable for web pages, bug reports, manuals, and forums without dragging in a full terminal emulator.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ansifilter | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
安装元数据
| 软件包键 | brew:ansifilter |
|---|---|
| 版本 | 2.22 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/ansifilter |
| 主页 | http://andre-simon.de/doku/ansifilter/en/ansifilter.php |
| 仓库 | https://gitlab.com/saalen/ansifilter |
| 上游文档 | http://andre-simon.de/doku/ansifilter/en/ansifilter.php |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://gitlab.com/saalen/ansifilter/-/archive/2.22/ansifilter-2.22.tar.bz2 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ansifilter |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
ansifilter 2.21-1
parse common (terminal) ANSI codes and remove or convert them
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apt install ansifilteransifilter-gui 2.21-1
parse common (terminal) ANSI codes and remove or convert them (GUI)
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apt install ansifilter-guiansifilter
nix profile install nixpkgs#ansifilteransifilter 2.18+dfsg1-2build2
parse common (terminal) ANSI codes and remove or convert them
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apt install ansifilteransifilter-gui 2.18+dfsg1-2build2
parse common (terminal) ANSI codes and remove or convert them (GUI)
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apt install ansifilter-guiansifilter 2.22-r0
Convert text files containing ANSI terminal escape codes to a variety of output formats
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilteransifilter-bash-completion 2.22-r0
Bash completions for ansifilter
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilter-bash-completionansifilter-doc 2.22-r0
Convert text files containing ANSI terminal escape codes to a variety of output formats (documentation)
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilter-docansifilter-fish-completion 2.22-r0
Fish completions for ansifilter
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilter-fish-completionansifilter-zsh-completion 2.22-r0
Zsh completions for ansifilter
http://andre-simon.de/doku/ansifilter/en/ansifilter.php
sudo apk add ansifilter-zsh-completionansifilter 2.22-4.fc45
ANSI terminal escape code converter
http://www.andre-simon.de/doku/ansifilter/ansifilter.php
sudo dnf install ansifilteransifilter-gui 2.22-4.fc45
GUI for ansifilter based on Qt6
http://www.andre-simon.de/doku/ansifilter/ansifilter.php
sudo dnf install ansifilter-guiansifilter 2.22-1.4
ANSI Terminal Escape Code Converter
sudo zypper install ansifilteransifilter-gui 2.22-1.4
ANSI Terminal Escape Code Converter - Qt GUI
sudo zypper install ansifilter-guiansifilter
sudo port install ansifilter来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.