CLI doesn't support ansi terminals with 3-bit colors
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Run tput colors in an 8-color terminal and read pulpcore/cli/common/context.py at the formatter setup referenced in the issue. Compare the color handling with the linked httpie implementation. Done means the CLI adapts to the terminal's available colors or disables color when 256-color output is unsupported.
Written by the indexing model from the issue text.
Description
A user on the pulp channel ran into a problem where their text was blinking. The command tput colors showed that their terminal only support 8 colors.
We're using a 256 color formatter (see here). I think we need to make the CLI smarter and have it fall back to use the colors the terminal provides or automatically disable color support if the terminal doesn't have 256 colors.
A quick scan of httpie looks like maybe it handles this: https://github.com/httpie/httpie/blob/464b5b4c1d8b3e72255739094e17a013d80abae7/httpie/output/formatters/colors.py#L57-L66
- Dominant language
- Python
- Stars
- 43
- Forks
- 52
- Avg merge
- 11h 38m
- Merged PRs (30d)
- 11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pulp/pulp-cli
-
bug Triage-Needed
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
feature request
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
easy fix feature request
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
bug Triage-Needed
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AiursoftWeb/AnduinOS-2#19 ·