pkg.soopen package index

brew / rank 13793

Install termbg with Homebrew, dnf, Nix

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

Additional install commands

macOS

Homebrewverified · 100%
brew install termbg

local Homebrew formula metadata

Linux

Fedora dnfverified · 92%
sudo dnf install termbg

Fedora Rawhide package metadata · termbg · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#termbg

nixpkgs package indexes · pkgs/by-name/te/termbg/package.nix · source: api.github.com

overview

Package summary

Rust library for terminal background color detection

Commands and aliases

  • termbg

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2020-11-09: GitHub repository created and v0.1.0 tag commit dated.
  • 2024-11-15: v0.6.1 tag commit dated.
  • 2025-01-06: v0.6.2 tag commit dated.

Related projects

  • The README's compatibility list includes Alacritty, GNOME Terminal, GNU Screen, kitty, iTerm2, macOS Terminal, mintty, tmux, Visual Studio Code, xterm, Win32 console, and several unsupported terminals such as Cmder, ConEmu, PuTTY, QTerminal, and Windows Terminal.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
termbgcliglobal executable

freshness

Version and 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.

page generated2026-08-04
manager version0.6.2
manager updated
local dataok
upstreamcurrent
latest detectedv0.6.2

https://github.com/dalance/termbg

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:termbg
Version0.6.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/termbg
Homepagehttps://github.com/dalance/termbg
Repositoryhttps://github.com/dalance/termbg
LicenseApache-2.0 OR MIT
Source archivehttps://github.com/dalance/termbg/archive/refs/tags/v0.6.2.tar.gz
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametermbg
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

termbg

nix profile install nixpkgs#termbg
  • normalized package name match
  • Matched by: Termbg
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/te/termbg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
dnf95%

termbg 0.6.2-5.fc45

Terminal background color detection

https://crates.io/crates/termbg

sudo dnf install termbg
  • License: Apache-2.0 AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: rust-termbg
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Termbg
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: termbg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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