[Geany-devel] custom formatting for selections 'sent to terminal'

Matthew Brush matthewbrush at xxxxx
Sat Dec 18 15:46:37 UTC 2010


On 12/18/2010 02:51 AM, Liviu Andronic wrote:
> However, can the VTE be flexible enough to allow certain lines to have
> a different formatting? I am interested in selections 'sent to
> terminal': would it be feasible to have an option that would ensure,
> for example, that any 'selection sent to terminal' would be formatted
> in red colour in the VTE?
One way that might work would be to "encode" the text before it's sent 
with color escape sequences that the terminal already recognizes[1].  
I'm not sure if this could be done from a plugin, but it could probably 
be done in Geany's source code, although considering how esoteric  an 
option it is, it seems unlikely to be a desired feature for most.  I 
could be wrong.

What you could do if you wanted a really customized VTE is to write your 
own VTE[2] plugin and add in menu items like "Send to My Custom Terminal 
in Red" or whatever.

[1] http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
[2] http://library.gnome.org/devel/vte/0.26/

My two cents.

Cheers,
Matthew Brush (codebrainz)



More information about the Devel mailing list