pkg.soopen package index

brew / rank 13674

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 bottle metadata was recorded.

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
termbgexecutableindexed executableDiscovered from the local executable index.

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-03
manager version0.6.2
manager updated
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:termbg
Version0.6.2
Package managerHomebrew
Homepagehttps://github.com/dalance/termbg
Repositoryhttps://github.com/dalance/termbg
Bottlenot recorded
Servicenone declared

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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
  • pkg.so package database
  • pkgdb category and tag curation