Re: Colorized vtty text...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 30 Dec 2024 at 04:19, Felix Miata <mrmazda@xxxxxxxxxxxxx> wrote:
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

Your combos here aren't right. It's not expecting two colours for each setting. It's looking for a single colour (blue, green, red, black, white etc.) and an attribute/property for that single colour (bold, dim, reverse, underlined).

You can see the default combos with:

root@fedora:~# dnf --dump-main-config | grep colo
color = auto
color_list_available_downgrade = dim,magenta
color_list_available_install = bold,cyan
color_list_available_reinstall = bold,green
color_list_available_upgrade = bold,blue
color_list_installed_extra = bold,red
color_list_installed_newer = bold,yellow
color_list_installed_older = yellow
color_list_installed_reinstall = dim,cyan
color_search_match = bold,magenta
color_update_installed = dim,red
color_update_local = dim,green
color_update_remote = bold,green

If I add the following to /etc/dnf/dnf.conf:

root@fedora:~# cat /etc/dnf/dnf.conf
# see `man dnf.conf` for defaults and possible options
[main]
color_list_available_upgrade=black
 
Then re-dump the config:

root@fedora:~# dnf --dump-main-config | grep upgrade
color_list_available_upgrade = black

And if I then run dnf check-update my output will *only* be in black (for the update commands, the others will still be set in their default states until I override them.) Obviously you'll what white if you're running in a VTY.
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux