Re: Multiple colors in vte
- From: Stephen Boddy <stephen j boddy googlemail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Multiple colors in vte
- Date: Tue, 12 Jan 2016 15:40:54 +0100
(Just in case) Are you talking about setting the palette colours all at
once?
https://developer.gnome.org/vte/0.38/VteTerminal.html#vte-terminal-set-colors
This will allow you to change a 16 or 256 colour palette with one call.
(But I think you are really asking) Are you talking about setting the
palette/color attribute of the multiple characters of a string retrieved
using vte_terminal_get_text[_range] ()?
In which case I haven't seen any way of setting all the characters
attributes in one call. I think you'd have to submit a feature request to
get this. As far as I can tell at the moment you just have to loop over
each char setting the attributes one-by-one.
On 10 January 2016 at 20:19, <gilli4 gmx net> wrote:
Hi list,
sorry if this question is redundant, I haven't found any answers after
searching yet.
Is there a way to set multiple colors in a vte programatically?
I can see how you can set the color for the whole text and I understand
that there are color-codes for bash but since I want to use VTE for a very
custom terminal, I need to set multiple colors programatically. Right now
I'm using a TextView to achieve this but it seems to be too slow when
successively updating large parts of the screen.
Thanks in advance fpr any hint.
Gilzad
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]