-
Notifications
You must be signed in to change notification settings - Fork 762
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
Add additional Color Environment Variables+Values #7352
Comments
I checked further what's going in in the Linux and Unix world and therefore it's always good to check what the rich team is doing: They are using these variables+values to check for coloring in their tests: -->
Over here they are parsing the following environment variables: -->
So these ones are needed for Linux and MAC:
They are not checking for |
I think some of those are already checked in |
How can I reproduce? |
I added a test repository with a README.md. I found out that Ansible is using the
If the terminal supports coloring we will get a positive integer as return value (like When not using a virtual environment both Python 3.11 and 3.12 return The output of Python 3.11:
...and Python 3.12:
🙃 So maybe that's a curses bug in Python 3.12? UPDATE: I found out what's going on here! 🙂 I will write another comment today, but I need to check some documentations. |
Regarding the coloring: That was a bug in Python There seems to be something odd with the Python version as I started with
-> Which is correct, but from a user perspective I would not expect this message as there's Now changing to So I see some problems from the user side:
Wrapping up:
Does that make sense what I'm saying here? 😀 Final wordsThanks for your awesome software and support! |
Created an issue for that specific problem #7426 Thanks for investigating! |
Is there a My Ansible example isn't working here, because they are using
|
No we don't have a command to check. You might want to open an issue upstream — we're not really experts on color selection and generally rely on the dependency to do "the right thing". |
Done from my side. Thanks for your input! I checked the upstream I opened #7429 for further discussion about Python versioning and the |
I'm running
uv
version0.4.9
on Opensuse Tumbleweed (rolling release).In #3955 the color environment variables have been improved, but when executing
uv run ansible-playbook ...
I don't get an colored output, but it's working when activating the virtual environment withsources ...
and exucutingansible-playbook ...
.Until now the
uv run
command never supported colored output on my system. As I can see my system has other environemnt variables set then mentioned in #3955:As far as I found out the following variables+values are used for declaring color support:
...additionally to the variables+values you already check 😉
The text was updated successfully, but these errors were encountered: