TIP Remap Portage Colors

From Gentoo Linux Wiki

Jump to: navigation, search
Portage Output before (left) and after (right) remapping the color yellow to fuchsia
Portage Output before (left) and after (right) remapping the color yellow to fuchsia

Since Portage 2.1 there is a new feature about color remapping. This can be done via editing /etc/portage/color.map.

Let us map yellow to something different:

echo "yellow=fuchsia" >> /etc/portage/color.map

The syntax is

  • color=color
  • color=hexvalue (e.g. 0x00AAAA)

The list of colors is here: /usr/lib/portage/pym/output.py


But please note that colorized output of qfile and possibly some other tools currently (as of portage-utils 0.1.20) were not written initially to take RGB values into account. For such colors you should use ASCII escape sequences instead:

  • turquoise=34;1m

Color table for this notation: http://www.gentoo.org/images/docs/prompt-magic-colortable.gif

Personal tools