make cursor blink setting a bit more flexible
This commit is contained in:
parent
178859fe3c
commit
ad5c8c97e4
3
config.h
3
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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue