Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI doesn't support ansi terminals with 3-bit colors #323

Open
daviddavis opened this issue Jul 28, 2021 · 0 comments
Open

CLI doesn't support ansi terminals with 3-bit colors #323

daviddavis opened this issue Jul 28, 2021 · 0 comments
Labels
feature request New feature request (template-set)

Comments

@daviddavis
Copy link
Contributor

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

@mdellweg mdellweg added feature request New feature request (template-set) triaged labels Aug 4, 2021
@mdellweg mdellweg removed the triaged label Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request (template-set)
Projects
None yet
Development

No branches or pull requests

2 participants