Add support to set the foreground cursor color

VTE 0.44.1 supports setting the foregorund color of
the cursor using vte_terminal_set_color_cursor_foreground

Closes: #284
This commit is contained in:
Jelle van der Waa 2016-04-28 20:37:13 +02:00
parent ff93b3e28d
commit 746ade831a
2 changed files with 4 additions and 0 deletions

1
config
View File

@ -33,6 +33,7 @@ filter_unmatched_urls = true
[colors] [colors]
#cursor = #dcdccc #cursor = #dcdccc
#cursor_foreground = #dcdccc
foreground = #dcdccc foreground = #dcdccc
foreground_bold = #ffffff foreground_bold = #ffffff
background = #3f3f3f background = #3f3f3f

View File

@ -1296,6 +1296,9 @@ static void load_theme(GtkWindow *window, VteTerminal *vte, GKeyFile *config, hi
if (auto color = get_config_color(config, "colors", "cursor")) { if (auto color = get_config_color(config, "colors", "cursor")) {
vte_terminal_set_color_cursor(vte, &*color); vte_terminal_set_color_cursor(vte, &*color);
} }
if (auto color = get_config_color(config, "colors", "cursor_foreground")) {
vte_terminal_set_color_cursor_foreground(vte, &*color);
}
if (auto color = get_config_color(config, "colors", "highlight")) { if (auto color = get_config_color(config, "colors", "highlight")) {
vte_terminal_set_color_highlight(vte, &*color); vte_terminal_set_color_highlight(vte, &*color);
} }