agauniyal/rang
A Minimal, Header only Modern c++ library for terminal goodies 💄✨ observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 82
- Release rhythm 52
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3838
- days_rel: 109
- days_push: 109
- n_releases_24m: 1
Adoption not part of the score
1593 stars · 157 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Rang is a minimal, single-header modern C++ library for styling terminal output with colors and text attributes via iostream manipulators. It handles ANSI escape codes, Windows console specifics, and tty detection automatically across Unix and Windows.
Use cases
- colorize terminal output in a C++ program
- add ANSI colors to CLI tool output
- style console text with bold and colors in C++
- cross-platform terminal colors including Windows
- header-only C++ library for terminal styling
- avoid printing escape codes when output is redirected to a file
When to choose
- you want zero-dependency, drop-in header-only terminal colors in C++
- your CLI must work on both Windows and Unix terminals
- you need automatic tty detection and color control modes
When to avoid
- you need support for non-ANSI terminals or advanced terminal capabilities
- you're not using C++ or want a runtime-configurable styling framework
Facets
library · maturity stable
cli developer-tools developer-tools cross-platform cpp windows cross-platform header-only ansi-colors terminal-styling iostream single-header command-line linux macos
2 sources
- readme: https://github.com/agauniyal/rang · fetched 2026-08-28 · 35ad0a9e5e9a
- homepage: https://agauniyal.github.io/rang/ · fetched 2026-08-29 · e6b2e8273e21
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| agauniyal/rang | main | 75 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem