Will McDonald composed on 2024-12-30 00:18 (UTC):

> Will McDonald wrote:

>> Felix Miata wrote:

>>> ...annoys me greatly. There's simply not enough contrast for the comfort
>>> I expect
>>> from vtty use. e.g., dnf5 command output. In general, I'd like to limit
>>> vttys to 4
>>> colors: FG & BG as specified in .bashrc by setterm, plus red for errors
>>> (e.g. dead
>>> symlinks), and suitable contrast color for red, like it used to be. Is
>>> this
>>> possible? If so, how? If not possible globally, how about specifically
>>> for dnf5?

>> https://dnf5.readthedocs.io/en/latest/dnf5.conf.5.html#main-options-colors
>> details the configurable colour elements.
>> https://dnf5.readthedocs.io/en/latest/dnf5.conf.5.html#color-label
>> defines the values for colours that you can set.
>> I would assume if you set them all to "white,normal" or "black,normal",
>> depending on your terminal color scheme, you won't get any more colourised
>> output?

> And, final comment:

> # dnf --setopt=color=never check-update

> ... is not honoured, as is already indicated by
> https://github.com/orgs/rpm-software-management/projects/4/views/1?filterQuery=color&pane=issue&itemId=36881183&issue=rpm-software-management%7Cdnf5%7C839

> # dnf --setopt=color_list_available_upgrade=black check-update

>  ... is honoured which implies you can disable color per sub-command. So
> the following in /etc/dnf/dnf.conf should do the trick:

> color_list_installed_older=black
> color_list_installed_newer=black
> color_list_installed_reinstall=black
> color_list_installed_running_kernel=black
> color_list_installed_extra=black
> color_list_available_upgrade=black
> color_list_available_downgrade=black
> color_list_available_install=black
> color_list_available_reinstall=black
> color_list_available_running_kernel=black

First I looked at
https://dnf5.readthedocs.io/en/latest/dnf5.conf.5.html#main-options-colors
and then tried:
color_list_installed_older=white,blue
color_list_installed_newer=white,blue
color_list_installed_reinstall=white,blue
color_list_installed_running_kernel=white,blue
color_list_installed_extra=white,blue
color_list_available_upgrade=white,blue
color_list_available_downgrade=white,blue
color_list_available_install=white,blue
color_list_available_reinstall=white,blue
color_list_available_running_kernel=white,blue

so far, in a Rawhide and in a 41, and I detected no apparent changes.
-- 
Evolution as taught in public schools is, like religion,
        based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata
-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to