Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request thestinger#348 from jelly/foreground_color_cursor
Browse files Browse the repository at this point in the history
Add support to set the foreground cursor color
  • Loading branch information
thestinger committed Apr 28, 2016
2 parents c6d1425 + 746ade8 commit c252d4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ filter_unmatched_urls = true

[colors]
#cursor = #dcdccc
#cursor_foreground = #dcdccc
foreground = #dcdccc
foreground_bold = #ffffff
background = #3f3f3f
Expand Down
3 changes: 3 additions & 0 deletions termite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,9 @@ static void load_theme(GtkWindow *window, VteTerminal *vte, GKeyFile *config, hi
if (auto color = get_config_color(config, "colors", "cursor")) {
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")) {
vte_terminal_set_color_highlight(vte, &*color);
}
Expand Down

0 comments on commit c252d4b

Please sign in to comment.