From 1e04f80965a59ec84f9595161587f3dca528c016 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 4 Jun 2012 14:57:27 -0400 Subject: [PATCH 1/2] add a setting for the cursor color --- config.h | 1 + termite.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index 6667d57..3ce9d1e 100644 --- a/config.h +++ b/config.h @@ -20,6 +20,7 @@ static const bool cursor_blink = false; static const char *foreground_color = "#dcdccc"; static const char *background_color = "#3f3f3f"; +static const char *cursor_color = "#dcdccc"; static const char *colors[16] = { "#3f3f3f", // black diff --git a/termite.c b/termite.c index 024306f..9bf0ca3 100644 --- a/termite.c +++ b/termite.c @@ -270,15 +270,17 @@ int main(int argc, char **argv) { #endif // set colors - GdkColor foreground, background, palette[16]; + GdkColor foreground, background, cursor, palette[16]; gdk_color_parse(foreground_color, &foreground); gdk_color_parse(background_color, &background); + gdk_color_parse(cursor_color, &cursor); for (unsigned i = 0; i < 16; i++) { gdk_color_parse(colors[i], &palette[i]); } vte_terminal_set_colors(VTE_TERMINAL(vte), &foreground, &background, palette, 16); + vte_terminal_set_color_cursor(VTE_TERMINAL(vte), &cursor); #ifdef CLICKABLE_URL int tmp = vte_terminal_match_add_gregex(VTE_TERMINAL(vte), From e31fe139fbf4db76de979338b9557f90ae96169b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 4 Jun 2012 15:27:15 -0400 Subject: [PATCH 2/2] TODO update --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index c75c845..58e5f19 100644 --- a/README.rst +++ b/README.rst @@ -29,6 +29,8 @@ clipboard buffer. TODO ==== +* better url matching regex +* hint mode overlay for urls (like elinks/vimperator/pentadactyl) * scrollback completion * scrollback search needs to be improved upstream [1]_ * expose more options in ``config.h``