rust-cli / rust-cli/anstyle

Gracefully degrade from higher precision colors to lower precision

Open
#64 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-stream C-enhancement
Dominant language
HTML
Stars
171
Forks
44
Avg merge
2h 34m
Merged PRs (30d)
6

Description

This was split out of #5.

What if anstyle-stream provided a way to use trucolor and have it automatically adapted to Ansi256 or Ansi16, depending on what the terminal supports?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the related issue #5 and the anstyle-stream component named here. Determine how terminal color support is detected and what graceful adaptation from truecolor to Ansi256 or Ansi16 should mean; the work is done when the behavior and API are defined and covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.