Ethereal-dev: Re: [Ethereal-dev] how to set color or bold to text in the protocoltree window

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 21 Aug 2005 03:50:01 -0700
Vladimir Zherdenovsky wrote:
I want to separate the protocol tree item name from its value. It will
be fine use the bold font or set the color.
Its will help to people, using the ethereal as analyzer, see the name
and values. Because now its looks too gray and monotone.

If that's true (which I think is a matter of opinion, not fact, so perhaps it should be configurable, so that those who find it too gray and monotone can configure Ethereal to display it in boldface, or in some different color, and those of us who really aren't bothered by it can have Ethereal continue to display it as it does now; note, of course, that Tethereal can't display it specially...), then shouldn't it be a general property of Ethereal, rather than something a particular dissector does?

If so, then that'd be somewhat tricky for dissectors using "proto_tree_add_text()" or "proto_tree_add_*_format()".

The latter might be fixable if you change its semantics so that the item name is added to the item by the call, which has the additional advantage that you don't have to copy the name from the field specification - the call will get the name and insert it for you.

The former would be more work, although perhaps the call can be changed to take the field name as an argument.

Those calls might be used to make entries such as

	IP address 1: 192.9.200.1
	IP address 2: 192.9.200.2

and so on, though, in which case having the name be separate from the format string wouldn't work.