GNOME Bugzilla – Bug 725974
Support for highlight foreground color
Last modified: 2014-03-27 18:16:17 UTC
The highlight background color can be specified via API (vte_terminal_set_color_highlight()) or escape sequences (OSC 17/117). A counterpart to set the highlight foreground color should also be added (API, and OSC 19/119 as used in xterm). ChPe/Behdad: Can such a new API call be squeezed in before the 0.36 release?
IMO yes.
Created attachment 271761 [details] [review] Add support for highlight foreground color Could you please take a look at this patch? To test it with escape sequences: echo -ne '\e]19;#abcdef\a' # set highlight fg color echo -ne '\e]119\a' # reset highlight fg color Same with 17/117 for bg. Fg/bg are swapped if neither of these two are defined. I haven't verified the API bits. VTE_DEF_HL needed to be renamed for consistency. I decided to rename the rest as well, especially VTE_CUR_BG was misleading as the first word that occurred to me was always "current" instead of "cursor" and of course it didn't make any sense.
Fixed in vte-0-36. Keeping open for vte-next.
Fixed on master.