Re: [gtk-list] Coloured text
- From: Owen Taylor <otaylor redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Coloured text
- Date: 08 Jul 1998 14:45:32 -0400
Robert Thomson <c9805651@alinga.newcastle.edu.au> writes:
> Has anyone implemented, or started implementing, coloured text into the
> toolkit? Ie. xterm colour codes or similar. I wouldn't mind having ANSI
> support aswell, as it is more widely used. Maybe just one format and
> interpreters / bindings for the others ?
>
> Just thinking about how one would create a mud client with the GTK..
Colors can already be set, though not usually with ANSI escape
sequences.
- Widgets with a single color text (labels, entries, etc.) have
their color set through the style mechanism. It would seem
odd to me to use embedded control sequences to modify the
color of text here.
- The Text widget supports a more general property mechanism
where properties can be set on text to set the color and
font (and the color is not restricted to just the colors
supported by ANSI sequences.)
An application might conceivably set the properties in the text
it was inserting into a Text widget based ANSI sequences in
the incoming text screen; I don't think the Text widget should
understand them, though.
- Terminal emulators widgets like GtkVT and zvt already support
the ANSI escape sequences for colors.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]