# console-rs/console

A rust console and terminal abstraction

Repository: https://github.com/console-rs/console
Canonical: https://ross.abutalabs.com/products/console-rs-console
Language: Rust
License: MIT
License Family: permissive
Last push: 2026-09-02T10:14:14+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 85, longevity 100
- inputs: {"age_days": 3403, "days_push": 0, "days_rel": 20, "gap_med": 75, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1190, forks 141 (observed 2026-09-03T02:15:10.175842+00:00)

## What it is
console is a Rust library providing a cross-platform terminal abstraction through the Term type, with utilities for colors, styles, ANSI code handling, and text measurement. It is a foundational building block for building nicer command line interfaces in Rust.

## Use cases
- style terminal output with colors in rust
- detect tty and enable/disable colors automatically
- strip ansi escape codes from strings
- measure displayed text width with unicode support
- clear or write terminal lines programmatically
- build cross-platform cli tools in rust

## When to choose
- you need low-level terminal access and text styling in a Rust CLI
- you want automatic color detection following the clicolors standard
- you need ANSI stripping or text width measurement for formatting
- you are building on top of dialoguer or indicatif

## When to avoid
- you need full-featured TUI layouts or widgets (use ratatui instead)
- you need interactive prompts or progress bars (use dialoguer or indicatif)
- your project is not written in Rust

## Facets
- artifact type: library
- maturity: stable
- function: terminal-ui, developer-tools, cli
- domain: developer-tools, cross-platform
- platform: rust, windows, cli
- tags: ansi-codes, terminal-colors, text-styling, unicode-width, tty-detection, command-line, linux, macos

## Member repositories
- console-rs/console (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:10.175842+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:23:08.308833+00:00, confidence not recorded.
  - readme: https://github.com/console-rs/console (fetched 2026-09-03T02:15:10.175842+00:00, sha 1e63da96ef70)
  - registry_crates: https://crates.io/api/v1/crates/console (fetched 2026-08-29T12:30:16.639356+00:00, sha 6fd89a83d1b0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
