Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148757 - app-portage/portage-utils: qfile's colorized output is broken when using RGB colors
Summary: app-portage/portage-utils: qfile's colorized output is broken when using RGB ...
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
: 165580 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-23 03:10 UTC by morhekil
Modified: 2010-01-24 21:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description morhekil 2006-09-23 03:10:51 UTC
Using color remapping feature from 2.1 portage I've made the following mapping in /etc/portage/color.map:
turquoise=0x00AAAA
While portage itself (emerge, etc) is working fine qfile's output is quite broken. It returns the following all-black text instead of properly colorized output:

isengard bugmon # qfile /usr/bin/qfile
app-portage/00AAAAportage-utils (/usr/bin/qfile)
^[[2;1;1;112;112;1;0xisengard bugmon # 1;1;112;112;1;0x

Replacing 0x00AAAA with symbolic color name (like turquoise=yellow for example) also doesn't help:

# qfile /usr/bin/qfile
app-portage/ellowportage-utils (/usr/bin/qfile)
Comment 1 morhekil 2006-09-23 03:24:08 UTC
my portage and portage-utils versions:

app-portage/portage-utils-0.1.20
sys-apps/portage-2.1.1
Comment 2 SpanKY gentoo-dev 2006-09-23 03:26:58 UTC
that's because qfile expects the normal escaped format, not RGB
Comment 3 morhekil 2006-09-23 03:34:34 UTC
can you give the example of that format? Will it also work with the rest of the portage?
Comment 4 SpanKY gentoo-dev 2006-09-23 03:39:28 UTC
the syntax is normal ascii terminal escape sequences:
turqoise=34;1m

http://www.gentoo.org/images/docs/prompt-magic-colortable.gif
Comment 5 SpanKY gentoo-dev 2006-09-23 03:42:38 UTC
portage cheats ... it takes the RGB input and maps that to the escape sequence

so you cant just use arbitrary RGB values
Comment 6 morhekil 2006-09-23 03:52:01 UTC
Ok, this format works fine. But the wiki mentions only RGB format and points to the output.py file also mentioning RGB only:
http://gentoo-wiki.com/TIP_Remap_Portage_Colors
If qfile won't be fixed the documentation should be updated considering this bug imho.
Comment 7 SpanKY gentoo-dev 2006-09-23 03:53:31 UTC
gentoo-wiki is completely unofficial so that is not Our Problem (tm)
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-02-06 12:58:42 UTC
*** Bug 165580 has been marked as a duplicate of this bug. ***