macOS
brew install termbglocal Homebrew formula metadata
brew / rank 13674
Rust library for terminal background color detection. Version 0.6.2 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#termbg.
install
brew install termbglocal Homebrew formula metadata
sudo dnf install termbgFedora Rawhide package metadata · termbg · source: dl.fedoraproject.org
nix profile install nixpkgs#termbgnixpkgs package indexes · pkgs/by-name/te/termbg/package.nix · source: api.github.com
overview
Rust library for terminal background color detection
history
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.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
termbg | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:termbg |
|---|---|
| Version | 0.6.2 |
| Package manager | Homebrew |
| Homepage | https://github.com/dalance/termbg |
| Repository | https://github.com/dalance/termbg |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
termbg
nix profile install nixpkgs#termbgtermbg 0.6.2-5.fc45
Terminal background color detection
https://crates.io/crates/termbg
sudo dnf install termbgsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.