diff --git a/config.h b/config.h index 48af579..3d66503 100644 --- a/config.h +++ b/config.h @@ -15,6 +15,7 @@ static const char *url_regex = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*"; static const char *font = "Monospace 9"; static const long scrollback_lines = 1000; +static const bool cursor_blink = false; static const char *foreground_color = "#dcdccc"; static const char *background_color = "#3f3f3f"; diff --git a/termite.c b/termite.c index 0455cc6..e0033f1 100644 --- a/termite.c +++ b/termite.c @@ -224,6 +224,9 @@ int main(int argc, char **argv) { vte_terminal_set_visible_bell(VTE_TERMINAL(vte), visible_bell); vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), mouse_autohide); + if (!cursor_blink) + vte_terminal_set_cursor_blink_mode(VTE_TERMINAL(vte), VTE_CURSOR_BLINK_OFF); + #ifdef TRANSPARENCY GdkScreen *screen = gtk_widget_get_screen(window); GdkColormap *colormap = gdk_screen_get_rgba_colormap(screen);