Merge pull request #348 from jelly/foreground_color_cursor

Add support to set the foreground cursor color
This commit is contained in:
Daniel Micay 2016-04-28 19:57:16 -04:00
commit c252d4b55c
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);
} }