aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-03-13 12:55:12 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-03-13 12:55:12 -0300
commit0d59c52b323893c35d7276ebdf179e7060abf281 (patch)
treed3fbcbe8d5edc35d478c984136704859632b13de /src
parent8985ad08f87e969b546672664b868d027a0bc006 (diff)
Added CONFIG_CURSOR_BLINK_MODE.
Diffstat (limited to 'src')
-rw-r--r--src/T.c1
-rw-r--r--src/config.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/T.c b/src/T.c
index dc8f52f..c776983 100644
--- a/src/T.c
+++ b/src/T.c
@@ -176,6 +176,7 @@ set_preferences(VteTerminal *terminal)
/* Set preferences */
vte_terminal_set_audible_bell(terminal, CONFIG_AUDIBLE_BELL);
vte_terminal_set_colors(terminal, &fg_color, &bg_color, palette, CONFIG_PALETTE_SIZE);
+ vte_terminal_set_cursor_blink_mode(terminal, CONFIG_CURSOR_BLINK_MODE);
vte_terminal_set_font_from_string(terminal, CONFIG_FONT_NAME);
vte_terminal_set_mouse_autohide(terminal, CONFIG_MOUSE_AUTOHIDE);
vte_terminal_set_scrollback_lines(terminal, CONFIG_SCROLLBACK_LINES);
diff --git a/src/config.h b/src/config.h
index f1f5b59..ee466ee 100644
--- a/src/config.h
+++ b/src/config.h
@@ -63,3 +63,6 @@ static const char *CONFIG_COLOR_PALETTE[CONFIG_PALETTE_SIZE] = {
/* Visible bell (TRUE or FALSE) */
#define CONFIG_VISIBLE_BELL FALSE
+
+/* Cursor blink mode. One of: VTE_CURSOR_BLINK_SYSTEM/ON/OFF */
+#define CONFIG_CURSOR_BLINK_MODE VTE_CURSOR_BLINK_OFF