termcolor
« Back to VersTracker
Description:
Header-only C++ library for printing colored messages
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ terminal color header-only cli
Install: brew install termcolor
About:
Termcolor is a header-only C++ library for printing colored text to terminals. It provides a simple, stream-like API that works across multiple platforms without external dependencies. The main value is its ease of integration and clean syntax for enhancing console output readability.
Key Features:
  • Header-only (no linking required)
  • Simple stream-like API (e.g., std::cout << termcolor::red)
  • Cross-platform support (Windows, Linux, macOS)
  • No external dependencies
Use Cases:
  • Adding color-coded status or error messages to CLI tools
  • Improving test output readability in C++ projects
Alternatives:
  • fmt – Adds formatting and optional coloring; heavier than a header-only utility
  • spdlog – Full-featured logging library with coloring; more complex dependency
Version History
Detected Version Rev Change Commit
Dec 21, 2024 12:04pm 0 VERSION_BUMP c0a3c944