macOS
brew install termbglocal Homebrew formula metadata
安装
brew install termbglocal Homebrew formula metadata
sudo dnf install termbgFedora Rawhide package metadata · termbg · 来源: dl.fedoraproject.org
nix profile install nixpkgs#termbgnixpkgs package indexes · pkgs/by-name/te/termbg/package.nix · 来源: api.github.com
概览
Rust library for terminal background color detection
历史
termbg is a Rust library and small check program for detecting a terminal's background color. The README says it reports either RGB values or a dark/light theme.
The GitHub repository was created in November 2020, and its v0.1.0 tag points to the initial repository work from the same day. The project has remained a focused terminal-behavior utility rather than a broad terminal UI framework.
termbg is published as a Rust crate and appears in package-manager metadata for Homebrew, dnf, and Nix. Its README badges link crates.io and docs.rs, and its Homebrew formula exposes the included `termbg` executable for checking terminal behavior from the command line.
Rust programs depend on the crate and call functions such as `terminal`, `rgb`, and `theme` with a timeout. The README also documents an example check program that prints the terminal type, detected RGB value, and dark/light theme.
termbg is useful in the terminal-tooling niche because theme-aware CLIs often need to know whether the background is dark or light. Its README documents support and non-support across many terminals, which gives package maintainers and CLI authors a compact compatibility reference.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
termbg | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:termbg |
|---|---|
| 版本 | 0.6.2 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/dalance/termbg |
| 仓库 | https://github.com/dalance/termbg |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
termbg
nix profile install nixpkgs#termbgtermbg 0.6.2-5.fc45
Terminal background color detection
https://crates.io/crates/termbg
sudo dnf install termbg来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.