diff --git a/config.h b/config.h index a97c8e8..214938c 100644 --- a/config.h +++ b/config.h @@ -39,6 +39,9 @@ static const char *colors[16] = { "#ffffff", // bright white }; +// SYSTEM, ON or OFF +#define CURSOR_BLINK SYSTEM + static const bool resize_grip = false; static const bool scroll_on_output = false; diff --git a/termite.c b/termite.c index 8a01cef..6eb153d 100644 --- a/termite.c +++ b/termite.c @@ -7,6 +7,7 @@ #include "config.h" #define CONCAT(X, Y) X ## Y +#define CONCAT2(X, Y) CONCAT(X, Y) #define KEY(X) CONCAT(GDK_KEY_, X) #ifndef __GNUC__ @@ -259,11 +260,9 @@ int main(int argc, char **argv) { vte_terminal_set_audible_bell(VTE_TERMINAL(vte), audible_bell); vte_terminal_set_visible_bell(VTE_TERMINAL(vte), visible_bell); vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), mouse_autohide); + vte_terminal_set_cursor_blink_mode(VTE_TERMINAL(vte), CONCAT2(VTE_CURSOR_BLINK_, CURSOR_BLINK)); gtk_window_set_has_resize_grip(GTK_WINDOW(window), resize_grip); - 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); GdkVisual *visual = gdk_screen_get_rgba_visual(screen);