Ethereal-dev: Re: [Ethereal-dev] Multi-line text field for preferences

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: Wed, 8 Feb 2006 18:33:04 -0800 (PST)
ENDOH Akira wrote:

> Does ethereal have a  multi-line text field (like GtkText) for
> preferences ?

No.

> I guess no, but I just want to make sure, anyway,
> if no, I'll add this feature as a function like
> prefs_register_text_preference().

Should it just be a multi-line text field, or should it be a "list of
strings" preference, so that the dissector doesn't have to split the text
into lines by itself?

Also, how is that going to be saved in the preferences file?  Currently,
the code assumes a preference setting takes only one line; how would it
handle a setting that takes multiple lines?  Would it, for example, treat
backslash followed by a line ending as an indication that the next line of
the file is the next line of the preference?